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.14MB] [CPU: ▼3.74ms] Passed 4 tests
Analyzing server-side resources used by Serpwars Mobile CTA
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 28.56 ▼12.87 |
Dashboard /wp-admin | 3.45 ▲0.15 | 50.13 ▼1.66 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 52.71 ▲3.21 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 103.50 ▲12.04 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 39.80 ▼3.63 |
API /wp-admin/admin.php?page=ca_set_api_values | 3.32 | 36.33 |
Buttons /wp-admin/admin.php?page=ca-mobile-elements | 3.34 | 33.51 |
Add New /wp-admin/admin.php?page=ca_add_new_mobile_cta | 3.25 | 24.35 |
Server storage [IO: ▲8.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 65 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mobile_cta |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Serpwars Mobile CTA
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲160 | 14.22 ▼0.34 | 2.25 ▲0.13 | 52.36 ▲7.65 |
Dashboard /wp-admin | 2,229 ▲58 | 5.59 ▲0.08 | 90.58 ▼2.58 | 39.50 ▼1.34 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.02 ▼0.01 | 39.39 ▼4.35 | 35.56 ▼3.04 |
Add New Post /wp-admin/post-new.php | 6,274 ▲4,746 | 18.79 ▼4.20 | 922.58 ▲248.64 | 55.07 ▲3.56 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.27 ▲0.07 | 98.42 ▼5.69 | 44.46 ▲2.97 |
API /wp-admin/admin.php?page=ca_set_api_values | 819 | 2.00 | 24.50 | 24.29 |
Buttons /wp-admin/admin.php?page=ca-mobile-elements | 857 | 1.99 | 37.87 | 27.79 |
Add New /wp-admin/admin.php?page=ca_add_new_mobile_cta | 936 | 3.71 | 63.63 | 75.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_mobile_cta
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ca_set_api_values
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SERPWARS_API_Settings::me_options_page() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ca_set_api_values
- > Notice in wp-content/plugins/serpwars-mobile-cta/includes/libs/mobile-elements.api_settings.class.php+49
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ca_add_new_mobile_cta
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
Almost there! Just fix the following items
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/serpwars-mobile-cta/includes/mobile-element.class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/serpwars-mobile-cta/frontend/main.php:6
- > PHP Notice
Undefined variable: container in wp-content/plugins/serpwars-mobile-cta/frontend/template/mobile-elements.tmpl.php on line 5
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/serpwars-mobile-cta/frontend/template/mobile-elements.tmpl.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/serpwars-mobile-cta/includes/mobile-elements.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/serpwars-mobile-cta/frontend/marketing-tools.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/serpwars-mobile-cta/main.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/serpwars-mobile-cta/includes/mobile-admin-class.php:4
- > PHP Fatal error
Uncaught Error: Class 'FrontendHelper' not found in wp-content/plugins/serpwars-mobile-cta/frontend/template/mobile-elements.tmpl.php:10
- > PHP Notice
Trying to get property 'layout' of non-object in wp-content/plugins/serpwars-mobile-cta/frontend/template/mobile-elements.tmpl.php on line 5
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
serpwars-mobile-cta/main.php 92% from 13 tests
The primary PHP file in "Serpwars Mobile CTA" version 1.0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("serpwars-mobile-cta.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected18,969 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 0 | 24 | 17,917 |
PHP | 9 | 172 | 29 | 797 |
CSS | 7 | 27 | 28 | 194 |
JavaScript | 5 | 9 | 31 | 61 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 7.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 16 | 32.65% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/rsz_serpwars-logo.663fba82.png | 6.67KB | 4.01KB | ▼ 39.85% |
assets/img/jquery.minicolors.44ae4fdb.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/img/27709270.a4c295ce.png | 5.74KB | 1.95KB | ▼ 66.07% |