Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.20ms] Passed 4 tests
This is a short check of server-side resources used by Author Recommended Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.00 ▼2.17 |
Dashboard /wp-admin | 3.39 ▲0.04 | 44.82 ▼16.80 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.77 ▲2.07 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.53 ▼7.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.84 ▲1.68 |
Author Recommended Posts /wp-admin/options-general.php?page=author_recommended_posts | 3.30 | 31.95 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Author Recommended Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.22 ▼1.22 | 1.75 ▼0.11 | 42.24 ▲2.15 |
Dashboard /wp-admin | 2,201 ▲13 | 4.89 ▼0.00 | 101.52 ▼7.19 | 45.15 ▼2.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 37.49 ▼3.28 | 33.49 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6,254 ▲4,726 | 26.20 ▲7.85 | 902.70 ▲298.30 | 68.72 ▲17.88 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.23 ▲0.06 | 97.98 ▲5.19 | 41.40 ▼2.67 |
Author Recommended Posts /wp-admin/options-general.php?page=author_recommended_posts | 950 | 2.06 | 23.22 | 27.08 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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)
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/author-recommended-posts/views/_author-recommended-posts-list.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/author-recommended-posts/lib/constants.php:22
- > PHP Notice
Undefined variable: format_horizontal in wp-content/plugins/author-recommended-posts/views/_author-recommended-posts-list.php on line 1
- > PHP Notice
Undefined variable: page_title in wp-content/plugins/author-recommended-posts/views/options.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/author-recommended-posts/views/_recommended-meta-box.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/author-recommended-posts/views/_author-recommended-posts-list.php on line 8
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/author-recommended-posts/lib/constants.php on line 20
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/author-recommended-posts/lib/constants.php on line 20
- > PHP Notice
Undefined variable: namespace in wp-content/plugins/author-recommended-posts/views/options.php on line 1
- > PHP Notice
Undefined variable: recommended_ids in wp-content/plugins/author-recommended-posts/views/_author-recommended-posts-list.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/author-recommended-posts/lib/constants.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
author-recommended-posts/index.php 92% from 13 tests
The main file in "Author Recommended Posts" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("author-recommended-posts.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin719 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 131 | 241 | 421 |
CSS | 2 | 3 | 8 | 209 |
JavaScript | 1 | 17 | 8 | 89 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/admin-sort-icon.png | 1.33KB | 0.48KB | ▼ 63.82% |