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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼321.39ms] Passed 4 tests
Server-side resources used by AP Companion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 60.00 ▲1.24 |
Dashboard /wp-admin | 3.44 ▲0.03 | 41.14 ▼40.37 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 43.50 ▲3.92 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.07 | 98.56 ▼1,245.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 28.75 ▼0.72 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 108 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
AP Companion: 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,805 ▲61 | 15.23 ▼0.72 | 6.29 ▲0.15 | 2.77 ▲0.63 |
Dashboard /wp-admin | 2,895 ▲34 | 6.16 ▼0.02 | 120.88 ▼22.76 | 156.90 ▼5.73 |
Posts /wp-admin/edit.php | 2,702 ▲11 | 3.23 ▼0.01 | 67.11 ▼6.68 | 142.95 ▼54.64 |
Add New Post /wp-admin/post-new.php | 1,667 ▲7 | 18.14 ▼2.19 | 396.13 ▼5.92 | 167.77 ▲9.11 |
Media Library /wp-admin/upload.php | 1,708 ▲7 | 5.54 ▲0.01 | 141.76 ▲0.51 | 178.83 ▼7.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/ap-companion/includes/helper-functions.php:72
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/ap-companion/includes/helper-functions.php on line 69
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ap-companion/includes/helper-functions.php on line 69
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ap-companion/includes/helper-functions.php on line 69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: elements, page-builder, elementor
ap-companion/ap-companion.php 92% from 13 tests
The main file in "AP Companion" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected17,849 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 2,669 | 1,164 | 11,712 |
CSS | 6 | 481 | 85 | 5,328 |
JavaScript | 6 | 100 | 164 | 594 |
SVG | 3 | 1 | 0 | 215 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 75 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 1 | 1.28% |
▷ Concrete classes | 77 | 98.72% |
▷ Final classes | 1 | 1.30% |
Methods | 392 | |
▷ Static methods | 6 | 1.53% |
▷ Public methods | 261 | 66.58% |
▷ Protected methods | 128 | 32.65% |
▷ Private methods | 3 | 0.77% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/layouts.png | 7.33KB | 2.29KB | ▼ 68.74% |
assets/img/Hd-logo.png | 7.62KB | 2.92KB | ▼ 61.73% |
assets/img/testimonial-quote.png | 0.44KB | 0.43KB | ▼ 3.32% |