84% developer-mode

Code Review | Developer Mode

WordPress plugin Developer Mode scored84%from 54 tests.

About plugin

  • Plugin page: developer-mode
  • Plugin version: 0.4.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2012
  • Latest release: Jul 7, 2013
  • Number of updates: 28
  • Update frequency: every 10.5 days
  • Top authors: Jesper800 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active /13,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.74ms] Passed 4 tests

This is a short check of server-side resources used by Developer Mode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.38 ▼8.84
Dashboard /wp-admin3.47 ▲0.1350.59 ▼11.98
Posts /wp-admin/edit.php3.58 ▲0.2351.30 ▲2.31
Add New Post /wp-admin/post-new.php6.07 ▲0.1893.16 ▼0.45
Media Library /wp-admin/upload.php3.39 ▲0.1637.93 ▲6.71

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
jwdm_version
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Developer Mode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.64 ▼0.991.64 ▼0.8145.02 ▲2.98
Dashboard /wp-admin2,219 ▲315.85 ▼0.00102.88 ▼14.2940.85 ▼5.19
Posts /wp-admin/edit.php2,105 ▲162.03 ▼0.1138.65 ▲0.3234.39 ▼6.22
Add New Post /wp-admin/post-new.php1,530 ▼323.01 ▼0.15606.80 ▼74.1750.01 ▼8.73
Media Library /wp-admin/upload.php1,407 ▲164.28 ▲0.0997.76 ▼4.7143.33 ▼1.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • jwdm_version
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/functions.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/adminmenupage/promoteself.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'JWDM_LIBRARY_PATH/adminmenupage/options.php' (include_path='.:/usr/share/php') in wp-content/plugins/developer-mode/lib/adminmenu.php on line 2
    • > PHP Warning
      Use of undefined constant JWDM_LIBRARY_PATH - assumed 'JWDM_LIBRARY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/developer-mode/lib/roles.php on line 29
    • > PHP Warning
      Use of undefined constant JWDM_LIBRARY_PATH - assumed 'JWDM_LIBRARY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/developer-mode/lib/adminmenu.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/adminmenupage/plugins.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/adminmenupage/adminmenu.php:19
    • > PHP Warning
      require_once(JWDM_LIBRARY_PATH/helper/roles.php): failed to open stream: No such file or directory in wp-content/plugins/developer-mode/lib/roles.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/developer-mode/developer-mode.php:17
    • > PHP Fatal error
      require_once(): Failed opening required 'JWDM_LIBRARY_PATH/helper/roles.php' (include_path='.:/usr/share/php') in wp-content/plugins/developer-mode/lib/roles.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: hide plugins, admin, disable update, client, disable updates...

developer-mode/developer-mode.php 92% from 13 tests

Analyzing the main PHP file in "Developer Mode" version 0.4.1.3
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 382 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin794 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13212341694
PO File121557569
JavaScript111725
CSS1116

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.40
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods45
▷ Static methods511.11%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected