Benchmarks
Plugin footprint 83% 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.38MB] [CPU: ▼24.23ms] Passed 4 tests
A check of server-side resources used by WP Just ADS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.48 | 15.92 ▼24.53 |
Dashboard /wp-admin | 3.40 ▲0.10 | 35.86 ▼15.25 |
Posts /wp-admin/edit.php | 3.34 ▼0.01 | 29.97 ▼15.88 |
Add New Post /wp-admin/post-new.php | 4.78 ▼1.11 | 62.44 ▼41.26 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.88 ▼2.11 |
New Advertisement /wp-admin/post-new.php?post_type=jads | 3.56 | 67.06 |
All Advertisements /wp-admin/edit.php?post_type=jads | 3.34 | 30.25 |
Category /wp-admin/edit-tags.php?taxonomy=ads_tax&post_type=jads | 3.41 | 32.16 |
Settings /wp-admin/edit.php?post_type=jads&page=jads_settings_page | 3.39 | 32.94 |
Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Just ADS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,050 ▲315 | 14.35 ▼0.21 | 23.29 ▲21.58 | 39.76 ▼10.18 |
Dashboard /wp-admin | 2,251 ▲59 | 4.95 ▲0.03 | 100.56 ▼8.83 | 79.43 ▲37.55 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.04 ▼0.10 | 40.21 ▲3.96 | 37.67 ▲5.31 |
Add New Post /wp-admin/post-new.php | 1,578 ▲64 | 18.44 ▲0.73 | 675.35 ▼0.28 | 62.67 ▲7.35 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.21 ▲0.02 | 97.35 ▼7.54 | 74.88 ▲27.20 |
New Advertisement /wp-admin/post-new.php?post_type=jads | 2,661 | 7.90 | 182.73 | 117.74 |
All Advertisements /wp-admin/edit.php?post_type=jads | 1,134 | 2.02 | 32.28 | 31.66 |
Category /wp-admin/edit-tags.php?taxonomy=ads_tax&post_type=jads | 1,301 | 2.14 | 25.57 | 28.51 |
Settings /wp-admin/edit.php?post_type=jads&page=jads_settings_page | 874 | 2.03 | 26.45 | 27.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, 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 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=jads
- > Warning in wp-includes/class-wp-hook.php+310
Parameter 2 to jads_title_like_posts_where() expected to be a reference, value given
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-just-ads/includes/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-just-ads/includes/classes/ajaxed_status.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-just-ads/justads.php:44
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #4 in wp-just-ads/assets to your readme.txt
wp-just-ads/justads.php 92% from 13 tests
Analyzing the main PHP file in "WP Just ADS" version 1.11
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-just-ads.php" instead of "justads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,599 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 99 | 57 | 1,833 |
PHP | 21 | 231 | 108 | 1,289 |
JavaScript | 4 | 47 | 17 | 315 |
PO File | 1 | 45 | 45 | 107 |
SVG | 1 | 0 | 0 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 37 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.63% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.68MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/refresh.png | 1.47KB | 1.00KB | ▼ 31.98% |
images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshots/WP-Just-Ads.1.png | 395.54KB | 124.85KB | ▼ 68.44% |
images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |