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 gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.55ms] Passed 4 tests
A check of server-side resources used by WP Upcoming Releases
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 47.50 ▲4.75 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.47 ▼7.72 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.74 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.85 ▼17.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.09 ▲0.93 |
All Releases /wp-admin/edit.php?post_type=has_releases | 3.31 | 39.27 |
Categories /wp-admin/edit-tags.php?taxonomy=has_wpur_category&post_type=has_releases | 3.26 | 34.93 |
New Release /wp-admin/post-new.php?post_type=has_releases | 3.34 | 55.77 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_has_wpur_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Upcoming Releases
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.25 ▼0.15 | 1.51 ▼0.27 | 42.50 ▲1.12 |
Dashboard /wp-admin | 2,226 ▲49 | 5.62 ▼0.02 | 85.73 ▼9.08 | 42.38 ▲3.81 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▲0.01 | 36.03 ▼7.26 | 37.24 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.05 ▼0.07 | 659.01 ▲40.14 | 57.61 ▲7.02 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.20 ▼0.01 | 101.95 ▼2.20 | 43.23 ▼2.46 |
All Releases /wp-admin/edit.php?post_type=has_releases | 1,103 | 1.92 | 31.65 | 32.05 |
Categories /wp-admin/edit-tags.php?taxonomy=has_wpur_category&post_type=has_releases | 1,277 | 2.12 | 28.43 | 30.03 |
New Release /wp-admin/post-new.php?post_type=has_releases | 1,786 | 3.67 | 69.31 | 34.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_has_wpur_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-upcoming-releases/templates/partials/release-item.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-upcoming-releases/templates/releases-list.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-upcoming-releases/admin/releases-taxonomy.php:15
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-upcoming-releases/templates/releases-list.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-upcoming-releases/templates/releases-list.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-upcoming-releases/templates/widget-form.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-upcoming-releases/admin/releases-cpt.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-upcoming-releases/admin/releases-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-upcoming-releases/admin/releases-metabox.php:87
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: custom post type, movies, events, widget, coming soon...
wp-upcoming-releases/wp-upcoming-releases.php 92% from 13 tests
The main file in "WP Upcoming Releases" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 167 characters long)
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
No dangerous file extensions were detected545 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 120 | 164 | 413 |
PO File | 1 | 29 | 35 | 71 |
CSS | 2 | 14 | 72 | 61 |
PHP code Passed 2 tests
A short review 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 code | 0.34 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin