Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.33ms] Passed 4 tests
Server-side resources used by CAMOO SMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.55 ▼4.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.47 ▲0.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.80 ▼1.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.02 ▼2.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.31 ▼0.85 |
Server storage [IO: ▲21.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,985 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
CAMOO SMS: 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,800 ▲65 | 14.76 ▲0.38 | 1.69 ▼0.01 | 49.00 ▲2.41 |
Dashboard /wp-admin | 2,209 ▲21 | 5.97 ▲0.03 | 96.86 ▼19.88 | 36.61 ▼11.12 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.97 ▼0.09 | 35.14 ▼4.87 | 31.53 ▼4.73 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.23 ▲0.29 | 563.06 ▼64.76 | 51.57 ▼5.62 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.22 ▲0.02 | 95.10 ▼0.67 | 40.51 ▼0.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$tb_prefix
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 194× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Rijndael' not found in wp-content/plugins/camoo-sms/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php:59
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/camoo-sms/vendor/camoo/sms/src/Entity/PersonalizedContent.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'BFunky\\HttpParser\\HttpParserInterface' not found in wp-content/plugins/camoo-sms/vendor/camoo/http-header-parser/src/AbstractHttpParser.php:15
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/camoo-sms/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC2.php:44
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/camoo-sms/vendor/camoo/sms/tests/TestCase/TopUpTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/camoo-sms/vendor/camoo/http-header-parser/test/Entity/HttpResponseHeaderTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/camoo-sms/vendor/psr/http-message/src/ResponseInterface.php:22
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/camoo-sms/vendor/camoo/sms/src/Console/Runner.php on line 20
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/camoo-sms/vendor/camoo/sms/src/Response/TopUp.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/camoo-sms/includes/templates/meta-box.php:24
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% 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
7 plugin tags: subscribe, cameroon, bulk sms, camoo sarl, sms...
camoo-sms/camoo-sms.php 77% from 13 tests
The principal PHP file in "CAMOO SMS" v. 3.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin632,221 lines of code in 1,805 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,734 | 11,332 | 34,504 | 626,041 |
JSON | 19 | 4 | 0 | 2,503 |
Markdown | 20 | 511 | 0 | 2,169 |
JavaScript | 9 | 44 | 52 | 593 |
CSS | 7 | 99 | 12 | 457 |
YAML | 7 | 28 | 28 | 238 |
XML | 4 | 0 | 2 | 91 |
reStructuredText | 1 | 74 | 78 | 74 |
Bourne Shell | 1 | 4 | 7 | 26 |
SVG | 2 | 0 | 0 | 15 |
SQL | 1 | 0 | 0 | 14 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 644.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 27 | |
Traits | 4 | |
Classes | 290 | |
▷ Abstract classes | 7 | 2.41% |
▷ Concrete classes | 283 | 97.59% |
▷ Final classes | 73 | 25.80% |
Methods | 2,631 | |
▷ Static methods | 306 | 11.63% |
▷ Public methods | 2,302 | 87.50% |
▷ Protected methods | 225 | 8.55% |
▷ Private methods | 104 | 3.95% |
Functions | 133 | |
▷ Named functions | 100 | 75.19% |
▷ Anonymous functions | 33 | 24.81% |
Constants | 458 | |
▷ Global constants | 101 | 22.05% |
▷ Class constants | 357 | 77.95% |
▷ Public constants | 319 | 89.36% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.35MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/standard-xml-file.png | 13.78KB | 7.15KB | ▼ 48.10% |
assets/images/welcome/what-is-new/wc-order-box-note.png | 52.38KB | 18.09KB | ▼ 65.47% |
assets/images/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
assets/images/gdpr.png | 4.94KB | 5.00KB | 0.00% |