Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.81ms] Passed 4 tests
This is a short check of server-side resources used by WPMagPlus Companion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.32 ▲0.53 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.48 ▼7.31 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 52.51 ▲6.31 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.18 ▼15.45 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.21 ▲3.01 |
Demo Import /wp-admin/themes.php?page=advanced-import | 3.34 | 34.23 |
Server storage [IO: ▲13.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
__wpmagplus_companion_do_redirect |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WPMagPlus Companion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲52 | 13.24 ▼1.05 | 4.81 ▲2.89 | 44.08 ▼0.68 |
Dashboard /wp-admin | 2,232 ▲44 | 4.86 ▼0.03 | 113.57 ▲7.08 | 42.50 ▲1.97 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.03 ▲0.00 | 35.35 ▲0.39 | 35.15 ▲4.93 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.15 ▲4.77 | 657.96 ▲10.18 | 45.25 ▼6.42 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.25 ▲0.06 | 101.99 ▲5.31 | 42.74 ▼5.64 |
Demo Import /wp-admin/themes.php?page=advanced-import | 815 | 2.21 | 23.50 | 30.83 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- __wpmagplus_companion_do_redirect
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpmagplus-companion/public/partials/wpmagplus-companion-public-display.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wpmagplus-companion/admin/demo-data-template/lifestyle-magazine-lite.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wpmagplus-companion/admin/demo-data-template/travel-magazine-lite.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wpmagplus-companion/admin/demo-data-template/wp-travel-magazine.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpmagplus-companion/admin/about/about.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wpmagplus-companion/admin/demo-data-template/wp-magazine-plus.php:6
- > PHP Fatal error
require_once(): Failed opening required 'WPMAGPLUS_COMPANION_PATHadmin/about/about.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpmagplus-companion/admin/functions.php on line 3
- > PHP Warning
Use of undefined constant WPMAGPLUS_COMPANION_PATH - assumed 'WPMAGPLUS_COMPANION_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpmagplus-companion/admin/functions.php on line 3
- > PHP Warning
require_once(WPMAGPLUS_COMPANION_PATHadmin/about/about.php): failed to open stream: No such file or directory in wp-content/plugins/wpmagplus-companion/admin/functions.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmagplus-companion/admin/demo-documentation.php:81
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: advanced import, demo import
wpmagplus-companion/wpmagplus-companion.php Passed 13 tests
The main PHP file in "WPMagPlus Companion" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
This is a theme import plugin. Our plugin will help you import the theme content with just a click.
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
No dangerous file extensions were detected2,570 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 371 | 558 | 2,337 |
CSS | 3 | 12 | 16 | 120 |
JSON | 87 | 0 | 0 | 87 |
JavaScript | 2 | 7 | 32 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.15 |
Average class complexity | 5.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 5 | 15.62% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 14 | |
▷ Named functions | 14 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/about/images/logo.png | 28.01KB | 9.41KB | ▼ 66.40% |