Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼13.32ms] Passed 4 tests
A check of server-side resources used by Also In This Series
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.35 ▼9.02 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.15 ▲1.08 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.44 ▲4.53 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.68 ▼46.82 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 34.53 ▲1.47 |
Also In This Series /wp-admin/options-general.php?page=also-in-this-series-settings | 3.36 | 34.55 |
Series /wp-admin/edit-tags.php?taxonomy=series | 3.39 | 35.16 |
Server storage [IO: ▲0.03MB] [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: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_alsointhisseries_widget |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Also In This Series
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.21 ▼0.97 | 1.65 ▼0.20 | 44.23 ▼3.27 |
Dashboard /wp-admin | 2,211 ▲23 | 5.83 ▼0.02 | 103.10 ▼15.35 | 39.48 ▼4.68 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.00 ▼0.05 | 40.73 ▲5.07 | 35.52 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,548 ▲11 | 18.63 ▲0.45 | 628.25 ▲17.34 | 57.28 ▲1.63 |
Media Library /wp-admin/upload.php | 1,399 ▲20 | 4.25 ▲0.10 | 99.51 ▼3.61 | 40.63 ▼1.18 |
Also In This Series /wp-admin/options-general.php?page=also-in-this-series-settings | 932 | 2.07 | 25.80 | 31.33 |
Series /wp-admin/edit-tags.php?taxonomy=series | 1,239 | 2.13 | 27.23 | 30.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- alsointhisseries_deactivate
- widget_recent-comments
- widget_theysaidso_widget
- widget_alsointhisseries_widget
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/also-in-this-series/views/serieslisting.php
- > /wp-content/plugins/also-in-this-series/views/admin/optionsfield-textfield.php
- > /wp-content/plugins/also-in-this-series/views/widget-view.php
- > /wp-content/plugins/also-in-this-series/views/admin/optionsfield-select.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function planetjon\\wordpress\\also_in_this_series\\add_action() in wp-content/plugins/also-in-this-series/plugin-admin.php:185
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/also-in-this-series/views/serieslisting.php on line 13
- > PHP Notice
Trying to get property 'slug' of non-object in wp-content/plugins/also-in-this-series/views/serieslisting.php on line 1
- > PHP Notice
Undefined variable: widget in wp-content/plugins/also-in-this-series/views/widget-view.php on line 2
- > PHP Notice
Undefined variable: series in wp-content/plugins/also-in-this-series/views/serieslisting.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/also-in-this-series/views/admin/optionsfield-select.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/also-in-this-series/views/admin/optionsfield-radiobutton.php on line 1
- > PHP Notice
Undefined variable: description in wp-content/plugins/also-in-this-series/views/serieslisting.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/also-in-this-series/views/widget-view.php on line 2
- > PHP Notice
Undefined variable: values in wp-content/plugins/also-in-this-series/views/admin/optionsfield-checkbox.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: posts, widget, series, seo, related posts...
also-in-this-series/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Also In This Series" version 2.0.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("also-in-this-series.php" instead of "plugin.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 detected631 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 120 | 28 | 631 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 13 | 76.47% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin