84% development-mode

Code Review | Development Mode

WordPress plugin Development Mode scored84%from 54 tests.

About plugin

  • Plugin page: development-mode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 6.3.1
  • First release: May 9, 2017
  • Latest release: May 9, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Jakobodb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.95ms] Passed 4 tests

Server-side resources used by Development Mode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.78 ▼10.61
Dashboard /wp-admin3.32 ▲0.0147.28 ▼14.59
Posts /wp-admin/edit.php3.37 ▲0.0150.12 ▲4.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.83 ▼6.80
Media Library /wp-admin/upload.php3.24 ▲0.0138.79 ▲4.19

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Development Mode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.17 ▼1.571.66 ▼0.2241.24 ▼1.50
Dashboard /wp-admin2,217 ▲294.87 ▼0.94111.10 ▼5.9039.82 ▼2.99
Posts /wp-admin/edit.php2,100 ▲112.03 ▼0.0241.76 ▲1.1735.40 ▼4.69
Add New Post /wp-admin/post-new.php1,528 ▲1418.31 ▲0.80587.69 ▼24.0255.70 ▼2.40
Media Library /wp-admin/upload.php1,393 ▲84.24 ▲0.0695.06 ▼3.3441.97 ▼0.96

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/development-mode/development-mode.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: utility, admin bar, developer, admin, development

development-mode/development-mode.php Passed 13 tests

The entry point to "Development Mode" version 1.0.0 is a PHP file that has certain tags in its header comment area
83 characters long description:
Uses Sunrise theme on Dashboard and Frontend to visually represent development mode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin