Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.80ms] Passed 4 tests
Analyzing server-side resources used by Anton Accordion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 45.43 ▲2.35 |
Dashboard /wp-admin | 63.29 ▲0.01 | 12,382,982.84 ▲8,764.38 |
Posts /wp-admin/edit.php | 3.58 ▲0.18 | 51.23 ▼2.88 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.11 | 91.06 ▼11.09 |
Media Library /wp-admin/upload.php | 3.39 ▲0.11 | 42.11 ▲4.40 |
Add Accordion /wp-admin/post-new.php?post_type=anton_accordion | 3.51 | 57.81 |
Accordions /wp-admin/edit.php?post_type=anton_accordion | 3.43 | 41.54 |
Category /wp-admin/edit-tags.php?taxonomy=anton_accordions&post_type=anton_accordion | 3.38 | 37.86 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Anton Accordion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.17 ▼0.22 | 1.65 ▼0.10 | 40.93 ▼4.23 |
Dashboard /wp-admin | 2,231 ▲54 | 5.64 ▼0.02 | 85.51 ▼3.93 | 37.80 ▼2.13 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.99 ▲0.02 | 38.55 ▲1.84 | 34.93 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.59 ▲0.71 | 702.25 ▲56.72 | 66.38 ▲2.02 |
Media Library /wp-admin/upload.php | 1,436 ▲42 | 4.19 ▼0.03 | 108.10 ▲5.87 | 47.60 ▲3.57 |
Add Accordion /wp-admin/post-new.php?post_type=anton_accordion | 2,285 | 7.61 | 174.12 | 64.04 |
Accordions /wp-admin/edit.php?post_type=anton_accordion | 1,105 | 1.90 | 32.15 | 31.35 |
Category /wp-admin/edit-tags.php?taxonomy=anton_accordions&post_type=anton_accordion | 1,304 | 2.12 | 27.51 | 30.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 37 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=anton_accordions&post_type=anton_accordion
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 37 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=anton_accordions&post_type=anton_accordion
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #1 (Anton Accordion page options.) image not found
4nton-accordion/anton-accordion.php 77% from 13 tests
The entry point to "Anton Accordion" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/i18n/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("4nton-accordion.php" instead of "anton-accordion.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,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
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin