90% development-environment-notification

Code Review | Development Environment Notification

WordPress plugin Development Environment Notification scored90%from 54 tests.

About plugin

  • Plugin page: development-envir...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 0.2-3.9
  • WordPress version: 6.3.1
  • First release: May 7, 2014
  • Latest release: Aug 15, 2015
  • Number of updates: 8
  • Update frequency: every 58.1 days
  • Top authors: alexphelps3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,150 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Development Environment Notification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.58 ▼5.73
Dashboard /wp-admin3.31 ▼0.0448.08 ▼20.74
Posts /wp-admin/edit.php3.36 ▲0.0048.35 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.01 ▼10.77
Media Library /wp-admin/upload.php3.23 ▲0.0038.00 ▲3.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Development Environment Notification
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.24 ▼0.101.72 ▼0.1844.61 ▲1.80
Dashboard /wp-admin2,198 ▲215.61 ▼0.0693.25 ▼11.6838.10 ▼4.48
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0133.22 ▼0.9335.22 ▲1.66
Add New Post /wp-admin/post-new.php1,526 ▼522.92 ▼0.29676.01 ▼4.5758.32 ▲10.22
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.0398.50 ▼4.3545.04 ▲1.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: development, development tools, admin bar

development-environment-notification/devbar-notification.php 92% from 13 tests

Analyzing the main PHP file in "Development Environment Notification" version 0.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("development-environment-notification.php" instead of "devbar-notification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191332

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin