78% manage-upcoming-release

Code Review | Manage Upcoming Release

WordPress plugin Manage Upcoming Release scored78%from 54 tests.

About plugin

  • Plugin page: manage-upcoming-r...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: May 9, 2015
  • Latest release: Aug 25, 2015
  • Number of updates: 7
  • Update frequency: every 15.6 days
  • Top authors: jabbadu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /990 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.43ms] Passed 4 tests

Analyzing server-side resources used by Manage Upcoming Release
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0734.45 ▼6.92
Dashboard /wp-admin3.37 ▲0.0245.02 ▼9.64
Posts /wp-admin/edit.php3.42 ▲0.0644.83 ▼2.31
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.29 ▼22.84
Media Library /wp-admin/upload.php3.29 ▲0.0634.16 ▼0.46
New release /wp-admin/post-new.php?post_type=release3.4446.06
All releases /wp-admin/edit.php?post_type=release3.3445.30

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Manage Upcoming Release
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.67 ▼0.941.79 ▼0.3943.92 ▼1.59
Dashboard /wp-admin2,230 ▲425.87 ▲1.01105.69 ▼3.6237.57 ▼1.03
Posts /wp-admin/edit.php2,119 ▲301.98 ▼0.0839.34 ▲2.2434.75 ▲0.69
Add New Post /wp-admin/post-new.php1,555 ▲4118.44 ▲0.81633.63 ▼23.5450.14 ▼2.83
Media Library /wp-admin/upload.php1,418 ▲304.26 ▼0.0394.72 ▼0.6943.80 ▲0.61
New release /wp-admin/post-new.php?post_type=release2,4997.70173.3267.08
All releases /wp-admin/edit.php?post_type=release1,1111.9430.8730.39

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× 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/manage-upcoming-release/metabox-tba.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manage-upcoming-release/manage-release-dates.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=release
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=release 1906:1 Uncaught ReferenceError: QTags is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (All releases), #2 (Add or edit release), #3 (Use Shortcode)
You can look at the official readme.txt

manage-upcoming-release/manage-release-dates.php 92% from 13 tests

The principal PHP file in "Manage Upcoming Release" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("manage-upcoming-release.php" instead of "manage-release-dates.php")

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 plugin805 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS22659524
PHP44524278
JavaScript1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/ui-lightness/images/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png0.12KB0.16KB0.00%
css/ui-lightness/images/ui-icons_ffd27a_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.09KB0.14KB0.00%
css/ui-lightness/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%