Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲14.58MB] [CPU: ▲5.79ms] 75% from 4 tests
A check of server-side resources used by A.N.R.GHG Publishing Toolkit
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 14.58MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 37.80 ▼1.77 |
Dashboard /wp-admin | 22.50 ▲19.15 | 58.62 ▼2.35 |
Posts /wp-admin/edit.php | 22.61 ▲19.26 | 65.09 ▲19.94 |
Add New Post /wp-admin/post-new.php | 25.13 ▲19.24 | 104.30 ▲7.33 |
Media Library /wp-admin/upload.php | 22.42 ▲19.19 | 54.43 ▲21.73 |
Server storage [IO: ▲4.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by A.N.R.GHG Publishing Toolkit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲45 | 14.52 ▲0.12 | 1.72 ▲0.09 | 37.79 ▼2.22 |
Dashboard /wp-admin | 2,195 ▲20 | 5.64 ▼0.22 | 89.52 ▼13.67 | 38.65 ▼2.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.07 | 40.08 ▲2.09 | 35.43 ▲1.22 |
Add New Post /wp-admin/post-new.php | 6,380 ▲4,854 | 27.78 ▲5.02 | 884.89 ▲278.66 | 37.64 ▼17.00 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.27 ▲0.10 | 99.88 ▲2.37 | 40.84 ▼0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 34× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/anrghg/includes/interoperability.php
- > /wp-content/plugins/anrghg/admin/options/templates.php
- > /wp-content/plugins/anrghg/admin/options/settings-cb-interoperability.php
- > /wp-content/plugins/anrghg/admin/options/settings-ui.php
- > /wp-content/plugins/anrghg/includes/filtered.php
- > /wp-content/plugins/anrghg/admin/options/settings-text.php
- > /wp-content/plugins/anrghg/template-mini-plugin.php
- > /wp-content/plugins/anrghg/anrghg.php
- > /wp-content/plugins/anrghg/includes/security.php
- > /wp-content/plugins/anrghg/includes/helpers.php
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
anrghg/anrghg.php 92% from 13 tests
The main PHP file in "A.N.R.GHG Publishing Toolkit" ver. 1.16.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 253 characters long)
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
No dangerous file extensions were detected63,891 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 3 | 0 | 35,482 |
PHP | 34 | 1,971 | 10,017 | 18,174 |
PO File | 4 | 3,328 | 6,140 | 8,675 |
JavaScript | 12 | 211 | 163 | 1,377 |
Bourne Shell | 1 | 0 | 84 | 119 |
XML | 1 | 2 | 11 | 63 |
HTML | 1 | 0 | 4 | 1 |
CSS | 1 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 713 | |
▷ Named functions | 338 | 47.41% |
▷ Anonymous functions | 375 | 52.59% |
Constants | 13 | |
▷ Global constants | 13 | 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
No PNG images were found in this plugin