Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼294.42ms] Passed 4 tests
Analyzing server-side resources used by Table of contents generator - AcyMailing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.80 ▲1.26 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.09 ▼1.13 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.94 ▼2.06 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 90.95 ▼1,173.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.71 ▼0.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Table of contents generator - AcyMailing: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.78 ▲0.62 | 6.43 ▲0.17 | 2.42 ▼0.14 |
Dashboard /wp-admin | 2,889 ▲28 | 6.02 ▼0.29 | 124.49 ▼9.39 | 161.13 ▲1.25 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.22 ▼0.01 | 62.33 ▼4.46 | 142.46 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,781 ▲113 | 22.30 ▲3.86 | 413.09 ▼2.52 | 160.38 ▼0.82 |
Media Library /wp-admin/upload.php | 1,692 ▼6 | 5.49 ▼0.04 | 151.86 ▲13.34 | 188.03 ▲0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-table-of-contents-generator/acymailing-tableofcontents.php:13
- > PHP Fatal error
Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-table-of-contents-generator/plugin.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: newsletter, acymailing
acymailing-table-of-contents-generator/acymailing-tableofcontents.php 92% from 13 tests
Analyzing the main PHP file in "Table of contents generator - AcyMailing" version 1.3
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("acymailing-table-of-contents-generator.php" instead of "acymailing-tableofcontents.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin200 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 35 | 21 | 192 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner.png | 7.80KB | 1.26KB | ▼ 83.90% |