Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼1.63ms] Passed 4 tests
An overview of server-side resources used by MPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 43.31 ▲4.66 |
Dashboard /wp-admin | 3.76 ▲0.46 | 49.00 ▼5.72 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 54.00 ▲3.65 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 91.45 ▼9.12 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 42.88 ▲6.83 |
MPress /wp-admin/admin.php?page=mpress | 3.60 | 39.23 |
Help /wp-admin/admin.php?page=mpress-help | 3.59 | 35.79 |
Server storage [IO: ▲1.06MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 407 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by MPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲55 | 14.73 ▲0.44 | 1.75 ▲0.02 | 43.24 ▲1.09 |
Dashboard /wp-admin | 2,232 ▲54 | 5.56 ▼0.14 | 90.18 ▼14.78 | 77.41 ▲34.38 |
Posts /wp-admin/edit.php | 2,152 ▲55 | 1.97 ▲0.02 | 41.41 ▲2.80 | 35.72 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,589 ▲60 | 23.15 ▼0.51 | 755.59 ▲109.87 | 58.55 ▼5.17 |
Media Library /wp-admin/upload.php | 1,449 ▲55 | 4.25 ▲0.10 | 117.41 ▲18.29 | 81.24 ▲36.10 |
MPress /wp-admin/admin.php?page=mpress | 938 | 2.00 | 27.45 | 31.50 |
Help /wp-admin/admin.php?page=mpress-help | 832 | 1.99 | 23.71 | 30.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 220× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Mailgun\\Model\\ApiResponse' not found in wp-content/plugins/mpress/vendor/mailgun/mailgun-php/src/Mailgun/Model/Suppression/Unsubscribe/IndexResponse.php:19
- > PHP Fatal error
Uncaught Error: Class 'Http\\Message\\Builder\\ResponseBuilder' not found in wp-content/plugins/mpress/vendor/php-http/curl-client/src/ResponseBuilder.php:11
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\Exception\\StrategyUnavailableException' not found in wp-content/plugins/mpress/vendor/php-http/discovery/src/Exception/PuliUnavailableException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Strategy\\DiscoveryStrategy' not found in wp-content/plugins/mpress/vendor/php-http/discovery/src/Strategy/MockClientStrategy.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Mailgun\\Model\\ApiResponse' not found in wp-content/plugins/mpress/vendor/mailgun/mailgun-php/src/Mailgun/Model/Domain/DeleteCredentialResponse.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\MessageFactory' not found in wp-content/plugins/mpress/vendor/php-http/message/src/MessageFactory/GuzzleMessageFactory.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Mailgun\\Exception' not found in wp-content/plugins/mpress/vendor/mailgun/mailgun-php/src/Mailgun/Messages/Exceptions/MissingRequiredMIMEParameters.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Mailgun\\Exception' not found in wp-content/plugins/mpress/vendor/mailgun/mailgun-php/src/Mailgun/Exception/InvalidArgumentException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\StreamFactory' not found in wp-content/plugins/mpress/vendor/php-http/message/src/StreamFactory/GuzzleStreamFactory.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\RequestMatcher' not found in wp-content/plugins/mpress/vendor/php-http/message/src/RequestMatcher/RegexRequestMatcher.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: wordpress to mobile, mpress, mobile apps
mpress/mpress.php Passed 13 tests
The main PHP file in "MPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
MPress, convert your WordPress website to Mobile Application.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin20,733 lines of code in 381 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 317 | 4,508 | 11,681 | 16,262 |
Markdown | 34 | 1,408 | 0 | 2,561 |
JSON | 21 | 0 | 0 | 1,777 |
YAML | 4 | 15 | 2 | 63 |
XML | 2 | 4 | 0 | 46 |
CSS | 1 | 1 | 4 | 11 |
SVG | 1 | 21 | 0 | 10 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 61 | |
Interfaces | 31 | |
Traits | 12 | |
Classes | 256 | |
▷ Abstract classes | 7 | 2.73% |
▷ Concrete classes | 249 | 97.27% |
▷ Final classes | 120 | 48.19% |
Methods | 1,587 | |
▷ Static methods | 192 | 12.10% |
▷ Public methods | 1,350 | 85.07% |
▷ Protected methods | 59 | 3.72% |
▷ Private methods | 178 | 11.22% |
Functions | 176 | |
▷ Named functions | 31 | 17.61% |
▷ Anonymous functions | 145 | 82.39% |
Constants | 38 | |
▷ Global constants | 5 | 13.16% |
▷ Class constants | 33 | 86.84% |
▷ Public constants | 33 | 100.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