Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼293.82ms] Passed 4 tests
A check of server-side resources used by Anton Accordion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 54.29 ▲3.04 |
Dashboard /wp-admin | 3.53 ▲0.12 | 34.29 ▲0.33 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 39.49 ▲2.01 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.02 | 93.12 ▼1,178.24 |
Media Library /wp-admin/upload.php | 3.41 ▲0.11 | 26.18 ▲0.63 |
Add Accordion /wp-admin/post-new.php?post_type=anton_accordion | 3.74 | 45.89 |
Accordions /wp-admin/edit.php?post_type=anton_accordion | 3.50 | 27.84 |
Category /wp-admin/edit-tags.php?taxonomy=anton_accordions&post_type=anton_accordion | 3.40 | 25.63 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Anton Accordion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,841 ▲87 | 16.02 ▲0.47 | 7.68 ▲1.66 | 2.88 ▲0.37 |
Dashboard /wp-admin | 2,936 ▲75 | 6.00 ▼0.17 | 117.57 ▼20.83 | 152.93 ▼7.34 |
Posts /wp-admin/edit.php | 2,735 ▲44 | 3.24 ▲0.01 | 64.40 ▲3.47 | 140.74 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,786 ▲107 | 21.35 ▼1.15 | 463.83 ▲40.32 | 157.96 ▼3.09 |
Media Library /wp-admin/upload.php | 1,740 ▲42 | 5.48 ▼0.04 | 140.47 ▼8.37 | 189.95 ▲1.89 |
Add Accordion /wp-admin/post-new.php?post_type=anton_accordion | 2,962 | 10.07 | 196.51 | 206.06 |
Accordions /wp-admin/edit.php?post_type=anton_accordion | 1,418 | 3.16 | 61.15 | 111.81 |
Category /wp-admin/edit-tags.php?taxonomy=anton_accordions&post_type=anton_accordion | 1,663 | 2.77 | 57.28 | 114.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/4nton-accordion/lib/admin/post-type.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% 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:
- Screenshots: Screenshot #1 (Anton Accordion page options.) image required
4nton-accordion/anton-accordion.php 77% from 13 tests
The main PHP file in "Anton Accordion" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("4nton-accordion.php" instead of "anton-accordion.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/i18n/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,290 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 655 |
PHP | 4 | 32 | 33 | 544 |
CSS | 2 | 0 | 1 | 60 |
JavaScript | 2 | 0 | 1 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected