Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼294.51ms] Passed 4 tests
A check of server-side resources used by Accountable Press Toolkit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 59.04 ▲3.12 |
Dashboard /wp-admin | 3.42 ▲0.02 | 37.18 ▲0.09 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 42.14 ▲2.03 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.07 | 94.88 ▼1,183.28 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 30.40 ▲3.40 |
Accountable Press /wp-admin/options-general.php?page=accountable-press-settings | 3.33 | 25.68 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_accountable_press |
Browser metrics Passed 4 tests
An overview of browser requirements for Accountable Press Toolkit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲34 | 15.70 ▼0.21 | 5.87 ▼0.28 | 2.85 ▼0.07 |
Dashboard /wp-admin | 2,883 ▲32 | 6.11 ▼0.09 | 115.84 ▼20.63 | 158.12 ▼1.37 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.25 ▲0.02 | 63.03 ▲1.10 | 144.49 ▲6.56 |
Add New Post /wp-admin/post-new.php | 1,776 ▲80 | 22.18 ▲1.13 | 435.95 ▲36.60 | 157.19 ▼2.95 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.52 ▲0.03 | 139.21 ▼4.38 | 186.72 ▼4.29 |
Accountable Press /wp-admin/options-general.php?page=accountable-press-settings | 1,259 | 2.38 | 54.02 | 153.48 |
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
- The uninstall procedure has failed, leaving 1 option in the database
- widget_accountable_press
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: news publishing, accountable press, certified
accountable-press-toolkit/accountable-press.php 85% from 13 tests
The entry point to "Accountable Press Toolkit" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("accountable-press-toolkit.php" instead of "accountable-press.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 detected256 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 101 | 99 | 250 |
HTML | 1 | 0 | 2 | 5 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.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
There are no PNG files in this plugin