79% no-update-nag

Code Review | No Update Nag

WordPress plugin No Update Nag scored79%from 54 tests.

About plugin

  • Plugin page: no-update-nag
  • Plugin version: 1.4.12
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2009
  • Latest release: Aug 21, 2023
  • Number of updates: 25
  • Update frequency: every 207.9 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /45,748 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
Installer ran successfully

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

Server-side resources used by No Update Nag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.37 ▼9.48
Dashboard /wp-admin3.31 ▼0.0446.70 ▼14.75
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▲3.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.91 ▼31.30
Media Library /wp-admin/upload.php3.23 ▲0.0032.28 ▼1.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for No Update Nag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.191.79 ▼0.4642.70 ▲1.05
Dashboard /wp-admin2,203 ▲125.79 ▼0.1199.15 ▼2.3740.29 ▲0.63
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0239.55 ▼2.1434.84 ▲0.16
Add New Post /wp-admin/post-new.php1,514 ▼017.56 ▼0.12688.06 ▲46.9055.53 ▼3.41
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0697.10 ▼25.4641.71 ▼8.12

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/no-update-nag/tests/phpunit/bootstrap.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/no-update-nag/tests/phpunit/bootstrap.php on line 29
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/no-update-nag/tests/phpunit/bootstrap.php on line 29

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
6 plugin tags: coffee2code, notices, upgrade, updates, admin...

no-update-nag/no-update-nag.php Passed 13 tests

The principal PHP file in "No Update Nag" v. 1.4.12 is loaded by WordPress automatically on each request
119 characters long description:
Removes the WordPress update nag that appears at the top of all admin pages when a new version of WordPress is released

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected223 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
Markdown3410137
PHP4317051
Bourne Shell16221
XML10014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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