74% jobs-ajax-feed-widget

Code Review | Jobs Ajax Feed Widget

WordPress plugin Jobs Ajax Feed Widget scored74%from 54 tests.

About plugin

  • Plugin page: jobs-ajax-feed-wi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2014
  • Latest release: Feb 2, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Frettsy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,321 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.66MB] [CPU: ▼50.11ms] Passed 4 tests

Server-side resources used by Jobs Ajax Feed Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.33 ▼1.1310.04 ▼33.24
Dashboard /wp-admin2.34 ▼0.9612.32 ▼48.18
Posts /wp-admin/edit.php2.35 ▼1.0111.75 ▼39.56
Add New Post /wp-admin/post-new.php2.34 ▼3.5411.12 ▼79.46
Media Library /wp-admin/upload.php2.34 ▼0.8810.54 ▼23.29

Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_jobs-ajax-feed-widget
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Jobs Ajax Feed Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.36 ▼1.044.85 ▲2.9042.56 ▼3.76
Dashboard /wp-admin2,209 ▲545.87 ▲0.23102.12 ▲0.2242.94 ▲1.89
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0537.26 ▼1.7136.87 ▼2.25
Add New Post /wp-admin/post-new.php1,542 ▲2318.34 ▼4.81649.13 ▲16.1753.41 ▲2.03
Media Library /wp-admin/upload.php1,385 ▼04.29 ▲0.0798.90 ▼3.9044.56 ▼0.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in JobsAjaxFeed_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_jobs-ajax-feed-widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jobs-ajax-feed-widget/jobs-ajax-feed-widget.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings preview), #2 (Widget preview)
You can take inspiration from this readme.txt

jobs-ajax-feed-widget/jobs-ajax-feed-widget.php Passed 13 tests

The main PHP file in "Jobs Ajax Feed Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Display job listings in an Ajax-powered RSS feed widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin284 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11524284

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity6.40
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png96.46KB20.90KB▼ 78.33%
screenshot-2.png42.19KB9.55KB▼ 77.36%