Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.90ms] Passed 4 tests
An overview of server-side resources used by AuthorSure
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.43 ▼3.93 |
Dashboard /wp-admin | 3.52 ▲0.18 | 45.92 ▼17.08 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 49.40 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 95.85 ▲6.74 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 34.89 ▼1.85 |
AuthorSure /wp-admin/options-general.php?page=authorsure | 3.40 | 47.27 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for AuthorSure
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.19 ▼1.10 | 1.91 ▲0.05 | 40.96 ▼2.87 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.96 | 107.50 ▼7.03 | 41.59 ▼0.90 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 40.23 ▲4.22 | 33.56 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 22.74 ▲5.02 | 625.35 ▼88.05 | 58.39 ▼0.01 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.06 | 94.63 ▼4.80 | 41.64 ▼3.36 |
AuthorSure /wp-admin/options-general.php?page=authorsure | 2,057 | 2.51 | 43.32 | 44.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=authorsure
- > User deprecated in wp-includes/functions.php+5737
Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/authorsure/main.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3 in authorsure/assets to your readme.txt
authorsure/main.php 92% from 13 tests
The main PHP file in "AuthorSure" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("authorsure.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,479 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 152 | 31 | 1,399 |
CSS | 2 | 0 | 0 | 41 |
JavaScript | 1 | 4 | 0 | 39 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 39.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 125 | 99.21% |
▷ Public methods | 98 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 28 | 22.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/16px/flickr.png | 0.59KB | 0.50KB | ▼ 14.00% |
images/16px/googleplus.png | 0.51KB | 0.48KB | ▼ 5.77% |
images/24px/flickr.png | 2.31KB | 1.25KB | ▼ 46.09% |
images/32px/pinterest.png | 1.06KB | 0.73KB | ▼ 31.16% |
images/16px/youtube.png | 0.69KB | 0.58KB | ▼ 15.89% |