72% developer

Code Review | Developer

WordPress plugin Developer scored72%from 54 tests.

About plugin

  • Plugin page: developer
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5
  • WordPress version: 6.3.1
  • First release: Apr 11, 2012
  • Latest release: Apr 14, 2016
  • Number of updates: 30
  • Update frequency: every 56.7 days
  • Top authors: betzster (36.67%)batmoo (30%)nbachiyski (20%)nickdaugherty (10%)danielbachhuber (10%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /199,376 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.76ms] 75% from 4 tests

Server-side resources used by Developer
Please fix the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 3,155.00ms on /wp-admin/tools.php?page=a8c_developer)
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1642.79 ▲6.39
Dashboard /wp-admin3.47 ▲0.1749.29 ▲0.66
Posts /wp-admin/edit.php3.59 ▲0.2351.73 ▲6.77
Add New Post /wp-admin/post-new.php6.07 ▲0.1984.41 ▼7.56
Media Library /wp-admin/upload.php3.39 ▲0.1733.99 ▼2.52
Developer /wp-admin/tools.php?page=a8c_developer3.823,155.00

Server storage [IO: ▲0.74MB] [DB: ▲0.09MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Developer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲14014.74 ▲0.381.89 ▲0.1845.37 ▲3.27
Dashboard /wp-admin2,302 ▲1225.76 ▲0.1391.04 ▲3.0641.65 ▼0.06
Posts /wp-admin/edit.php2,216 ▲1132.22 ▲0.2138.14 ▲2.1136.06 ▼0.35
Add New Post /wp-admin/post-new.php1,628 ▲10023.21 ▲0.11689.60 ▲31.1354.14 ▼1.66
Media Library /wp-admin/upload.php1,513 ▲1134.34 ▲0.08109.96 ▼0.4445.57 ▼3.21
Developer /wp-admin/tools.php?page=a8c_developer1,1421.9530.9852.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=a8c_developer
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=a8c_developer
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-upgrader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/developer/includes/class-wp-cli-commands.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php on line 3
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer/developer.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/tools.php?page=a8c_developer
    • > Javascript (severe) in unknown
    /wp-content/plugins/developer/colorbox/jquery.colorbox-min.js?ver=1.3.19 3:3210 Uncaught TypeError: a(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (On activation, the plugin prompts you to specify what type of developer you are. This is used to configure the plugins checks.), #2 (On activation, the plugin does a quick check to see if you have essential developer plugins installed.), #3 (With one click you can install and activate the plugin.), #4 (The plugin's settings page (Tools > Developer) will check to make sure your environment is correctly configured, including plugins, constants, and other settings.)
You can take inspiration from this readme.txt

developer/developer.php 92% from 13 tests

The main PHP script in "Developer" version 1.2.6 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,080 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP320795632
PO File17880225
JavaScript2366176
CSS25947

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity35.67
▷ Minimum class complexity2.00
▷ Maximum class complexity94.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods4695.83%
▷ Protected methods00.00%
▷ Private methods24.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.63MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png157.22KB47.90KB▼ 69.53%
screenshot-4.png177.58KB52.87KB▼ 70.23%
colorbox/images/controls.png1.59KB1.67KB0.00%
screenshot-1.png153.24KB48.10KB▼ 68.61%
screenshot-3.png157.51KB48.07KB▼ 69.48%