79% devstage

Code Review | DevStage

WordPress plugin DevStage scored79%from 54 tests.

About plugin

  • Plugin page: devstage
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 18, 2021
  • Latest release: Feb 8, 2022
  • Number of updates: 6
  • Update frequency: every 64.7 days
  • Top authors: mapsiter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.17MB] [CPU: ▼18.90ms] Passed 4 tests

A check of server-side resources used by DevStage
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0634.77 ▼6.07
Dashboard /wp-admin3.20 ▼0.1428.60 ▼29.76
Posts /wp-admin/edit.php3.28 ▼0.0837.87 ▼7.39
Add New Post /wp-admin/post-new.php5.47 ▼0.4272.30 ▼32.39
Media Library /wp-admin/upload.php3.21 ▼0.0227.81 ▼5.27
DevStage /wp-admin/options-general.php?page=devstage3.1225.98

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by DevStage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.35 ▲0.131.67 ▼0.0031.76 ▼11.67
Dashboard /wp-admin2,177 ▼05.61 ▼0.0382.77 ▼4.6237.87 ▼2.14
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0340.20 ▲3.5034.97 ▲4.51
Add New Post /wp-admin/post-new.php1,536 ▲823.14 ▲0.12615.47 ▼53.6077.16 ▼15.44
Media Library /wp-admin/upload.php1,385 ▼94.20 ▲0.0097.70 ▼0.3046.54 ▲2.91
DevStage /wp-admin/options-general.php?page=devstage8342.0024.6229.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=devstage
    • > Notice in wp-content/plugins/devstage/devstage.php+169
    Trying to access array offset on value of type bool

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devstage/devstage.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: show, development, which, signal, live...

devstage/devstage.php Passed 13 tests

"DevStage" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Simplest admin bar indicator whether you are in development, staging or live environment.

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 plugin168 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13638133
CSS15035

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin