84% wp-dev-notice

Code Review | WP Dev Notice

WordPress plugin WP Dev Notice scored 84% from 54 tests.

About plugin

  • Plugin page: wp-dev-notice
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: Oct 26, 2017
  • Number of updates: 7
  • Update frequency: every 4.3 days
  • Top authors: nezhar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 514 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: ▼1.68ms] Passed 4 tests

A check of server-side resources used by WP Dev Notice
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.03 ▼3.68
Dashboard /wp-admin3.31 ▲0.0144.59 ▲0.93
Posts /wp-admin/edit.php3.36 ▲0.0147.55 ▼3.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.61 ▼0.74
Media Library /wp-admin/upload.php3.24 ▲0.0136.81 ▲1.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Dev Notice
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.58 ▼0.771.65 ▼0.1339.68 ▼5.80
Dashboard /wp-admin2,208 ▲195.76 ▲0.8195.98 ▼23.7240.83 ▼3.80
Posts /wp-admin/edit.php2,097 ▲82.02 ▲0.0440.63 ▼0.8838.25 ▲2.06
Add New Post /wp-admin/post-new.php1,589 ▲6822.32 ▼0.68664.74 ▼7.3752.65 ▼9.56
Media Library /wp-admin/upload.php1,390 ▲24.23 ▼0.10124.96 ▲24.4958.32 ▲16.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dev-notice/functions.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dev-notice/functions.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: notice, development

wp-dev-notice/wp-dev-notice.php Passed 13 tests

The primary PHP file in "WP Dev Notice" version 1.3 is used by WordPress to initiate all plugin functionality
87 characters long description:
A WordPress plugin that displays a notification if you are working on a dev environment

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected45 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS13025
PHP351820

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin