Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.72ms] Passed 4 tests
This is a short check of server-side resources used by Ps Ads Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.72 ▼5.43 |
Dashboard /wp-admin | 3.43 ▲0.12 | 46.65 ▼6.84 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 53.48 ▲4.99 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.12 ▼15.67 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.96 ▼2.92 |
All Ads /wp-admin/edit.php?post_type=ps_ads_pro | 3.39 | 37.49 |
Settings /wp-admin/admin.php?page=ps_ads_pro_settings | 3.32 | 32.29 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_ps_ads_pro_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ps Ads Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲209 | 13.72 ▼0.70 | 5.76 ▲3.48 | 44.59 ▲0.86 |
Dashboard /wp-admin | 2,247 ▲59 | 5.92 ▲0.02 | 108.66 ▼2.12 | 43.47 ▼4.62 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.10 ▲0.06 | 35.37 ▼7.34 | 35.93 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.18 ▲5.74 | 685.42 ▲31.89 | 61.20 ▲7.81 |
Media Library /wp-admin/upload.php | 1,435 ▲47 | 4.29 ▲0.03 | 95.31 ▼18.67 | 43.27 ▼4.34 |
All Ads /wp-admin/edit.php?post_type=ps_ads_pro | 1,130 | 2.04 | 34.13 | 29.94 |
Settings /wp-admin/admin.php?page=ps_ads_pro_settings | 806 | 1.91 | 26.45 | 23.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_ps_ads_pro_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ps-ads-pro/admin/partials/ps-ads-pro-admin-display.php
- > /wp-content/plugins/ps-ads-pro/public/partials/ps-ads-pro-public-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ps-ads-pro/admin/partials/ps-ads-pro-info-meta-box.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ps-ads-pro/admin/partials/ps-ads-pro-schedule-meta-box.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ps-ads-pro/admin/partials/ps-ads-pro-meta-box.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ps-ads-pro/includes/class-ps-ads-pro-widget.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Backend) image missing
ps-ads-pro/ps-ads-pro.php Passed 13 tests
This is the main PHP file of "Ps Ads Pro" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
PS Ads Pro Plugin is used to managed the ads and banner in the wordpress sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected543 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 189 | 700 | 495 |
CSS | 2 | 5 | 8 | 33 |
JavaScript | 2 | 4 | 54 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 35 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 16.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin