Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▼0.13MB] [CPU: ▼10.84ms] Passed 4 tests
A check of server-side resources used by Annoto Plugin for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.70 | 15.07 ▼30.94 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.14 ▼3.09 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.73 ▼4.02 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 97.40 ▼5.30 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.53 ▼0.82 |
Annoto /wp-admin/options-general.php?page=annoto-key-config | 3.29 | 33.22 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
annoto_settings |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Annoto Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 11,359 ▲8,598 | 26.45 ▲12.16 | 21.08 ▲19.34 | 76.73 ▲33.79 |
Dashboard /wp-admin | 2,202 ▲27 | 5.57 ▼0.17 | 90.50 ▼13.92 | 41.81 ▲1.34 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.09 | 39.43 ▼2.26 | 36.42 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.62 ▲5.53 | 612.75 ▼17.62 | 53.95 ▼15.88 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.25 ▲0.02 | 97.44 ▼0.31 | 45.16 ▼1.76 |
Annoto /wp-admin/options-general.php?page=annoto-key-config | 1,364 | 1.82 | 29.90 | 31.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/annoto/annoto.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/annoto/views/settings.php:20
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
annoto/annoto.php 92% from 13 tests
The main file in "Annoto Plugin for WordPress" v. 1.0 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:
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin8,316 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 30 | 0 | 7,033 |
PHP | 5 | 98 | 176 | 617 |
JavaScript | 2 | 62 | 0 | 352 |
SVG | 1 | 1 | 1 | 225 |
Markdown | 1 | 47 | 0 | 89 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 26 | 100.00% |
▷ Public methods | 19 | 73.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 26.92% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/img/lock.png | 21.49KB | 10.62KB | ▼ 50.59% |
src/img/key.png | 21.77KB | 9.40KB | ▼ 56.81% |