Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.04MB] [CPU: ▼13.96ms] Passed 4 tests
This is a short check of server-side resources used by Mobile WP Security
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 42.38 ▼1.80 |
Dashboard /wp-admin | 3.68 ▲0.33 | 53.99 ▼9.80 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 54.28 ▲1.40 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.17 | 54.39 ▼45.63 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 44.87 ▲7.38 |
Mobile Security /wp-admin/options-general.php?page=mobile_wp_security | 3.49 | 37.04 |
Server storage [IO: ▲1.40MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 818 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_mobile_security_devices |
wp_mobile_security_ip_log |
wp_mobile_security_ban_rules |
New WordPress options |
---|
can_compress_scripts |
mobile_wp_security_secret_key |
widget_theysaidso_widget |
db_upgraded |
mobile_wp_security_settings |
mobile_wp_security_db_version |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Mobile WP Security: 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 / | 2,793 ▲43 | 14.25 ▼0.34 | 1.63 ▼0.15 | 44.66 ▲1.09 |
Dashboard /wp-admin | 2,199 ▲25 | 5.64 ▲0.08 | 91.50 ▼13.55 | 43.54 ▼5.11 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.05 | 39.62 ▲0.08 | 38.88 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,529 ▼9 | 23.30 ▼0.02 | 685.51 ▼19.55 | 49.37 ▼16.97 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.19 ▼0.04 | 99.58 ▼6.89 | 42.79 ▼2.25 |
Mobile Security /wp-admin/options-general.php?page=mobile_wp_security | 784 | 1.98 | 25.70 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 3 tables
- wp_mobile_security_ip_log
- wp_mobile_security_ban_rules
- wp_mobile_security_devices
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- mobile_wp_security_db_version
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- mobile_wp_security_secret_key
- widget_theysaidso_widget
- can_compress_scripts
- mobile_wp_security_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mobile-wp-security/vendor/jms/parser-lib/tests/bootstrap.php
- > /wp-content/plugins/mobile-wp-security/vendor/jms/serializer/tests/benchmark.php
- > /wp-content/plugins/mobile-wp-security/vendor/phpcollection/phpcollection/tests/bootstrap.php
- 239× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'JMS\\Serializer\\Handler\\SubscribingHandlerInterface' not found in wp-content/plugins/mobile-wp-security/vendor/jms/serializer/src/JMS/Serializer/Handler/PhpCollectionHandler.php:11
- > PHP Fatal error
Uncaught Error: Class 'JMS\\Serializer\\Metadata\\ClassMetadata' not found in wp-content/plugins/mobile-wp-security/vendor/jms/serializer/tests/Metadata/Driver/php/Discriminator.Car.php:5
- > PHP Fatal error
Uncaught Error: Class 'Metadata\\Tests\\Fixtures\\TestObject' not found in wp-content/plugins/mobile-wp-security/vendor/jms/metadata/tests/Metadata/Tests/Fixtures/TestParent.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/mobile-wp-security/vendor/phpoption/phpoption/src/PhpOption/None.php:26
- > PHP Fatal error
Uncaught Error: Class 'JMS\\Serializer\\Annotation\\XmlCollection' not found in wp-content/plugins/mobile-wp-security/vendor/jms/serializer/src/JMS/Serializer/Annotation/XmlMap.php:9
- > PHP Fatal error
Uncaught Error: Interface 'JMS\\Serializer\\VisitorInterface' not found in wp-content/plugins/mobile-wp-security/vendor/jms/serializer/src/JMS/Serializer/AbstractVisitor.php:8
- > PHP Fatal error
Uncaught Error: Interface 'JMS\\Serializer\\Exclusion\\ExclusionStrategyInterface' not found in wp-content/plugins/mobile-wp-security/vendor/jms/serializer/src/JMS/Serializer/Exclusion/GroupsExclusionStrategy.php:9
- > PHP Fatal error
Uncaught Error: Interface 'JMS\\Serializer\\Handler\\SubscribingHandlerInterface' not found in wp-content/plugins/mobile-wp-security/vendor/jms/serializer/src/JMS/Serializer/Handler/StdClassHandler.php:13
- > PHP Fatal error
Uncaught Error: Class 'Metadata\\Tests\\Fixtures\\ComplexHierarchy\\BaseClass' not found in wp-content/plugins/mobile-wp-security/vendor/jms/metadata/tests/Metadata/Tests/Fixtures/ComplexHierarchy/SubClassB.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mobile-wp-security/vendor/jms/serializer/tests/Handler/ArrayCollectionHandlerTest.php:13
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Plugin Settings and Qr-Code) image missing
mobile-wp-security/mobile-wp-security.php 77% from 13 tests
This is the main PHP file of "Mobile WP Security" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 152 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected27,309 lines of code in 780 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 478 | 5,996 | 8,058 | 22,538 |
XML | 140 | 12 | 2 | 1,194 |
reStructuredText | 20 | 535 | 934 | 1,014 |
Markdown | 16 | 356 | 0 | 965 |
JSON | 12 | 1 | 0 | 827 |
YAML | 113 | 36 | 0 | 757 |
Bourne Shell | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 74 | |
Interfaces | 40 | |
Traits | 3 | |
Classes | 417 | |
▷ Abstract classes | 29 | 6.95% |
▷ Concrete classes | 388 | 93.05% |
▷ Final classes | 52 | 13.40% |
Methods | 1,975 | |
▷ Static methods | 67 | 3.39% |
▷ Public methods | 1,713 | 86.73% |
▷ Protected methods | 121 | 6.13% |
▷ Private methods | 141 | 7.14% |
Functions | 123 | |
▷ Named functions | 7 | 5.69% |
▷ Anonymous functions | 116 | 94.31% |
Constants | 138 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 138 | 100.00% |
▷ Public constants | 138 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin