Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼6.24ms] Passed 4 tests
A check of server-side resources used by easy ads manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 37.54 ▲0.66 |
Dashboard /wp-admin | 3.52 ▲0.18 | 49.12 ▼8.62 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 48.52 ▼0.61 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 81.16 ▼16.39 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.46 ▲7.48 |
adverts sections & places /wp-admin/admin.php?page=easy-ads-main-sections | 3.42 | 36.98 |
Easy Adverts /wp-admin/admin.php?page=easy-ads | 3.43 | 36.69 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_easy_ads_taxnomy_sections_meta |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_easy_ads_wedgite_class |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
easy ads manager: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,093 ▲347 | 15.10 ▲0.52 | 5.86 ▲4.21 | 43.72 ▲3.42 |
Dashboard /wp-admin | 2,371 ▲194 | 6.28 ▲0.63 | 111.62 ▲18.94 | 85.38 ▲39.41 |
Posts /wp-admin/edit.php | 2,317 ▲217 | 3.44 ▲1.41 | 46.60 ▲3.53 | 79.77 ▲43.92 |
Add New Post /wp-admin/post-new.php | 1,729 ▲203 | 22.52 ▼0.53 | 558.21 ▼131.24 | 27.19 ▼28.20 |
Media Library /wp-admin/upload.php | 1,457 ▲60 | 4.19 ▲0.01 | 81.18 ▼23.37 | 82.97 ▲36.82 |
adverts sections & places /wp-admin/admin.php?page=easy-ads-main-sections | 1,165 | 3.29 | 43.38 | 86.32 |
Easy Adverts /wp-admin/admin.php?page=easy-ads | 1,281 | 3.19 | 46.04 | 83.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_easy_ads_taxnomy_sections_meta
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_easy_ads_wedgite_class
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-ads-manager/easy-ads-manager.php
- > /wp-content/plugins/easy-ads-manager/options_admin.php
- > /wp-content/plugins/easy-ads-manager/template.php
- > /wp-content/plugins/easy-ads-manager/easy-ads-functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== easy-ads-manager ===
)
easy-ads-manager/easy-ads-manager.php Passed 13 tests
"easy ads manager" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
easy ads is a free advertisement plugin to manage , add and remove ads easily way to wordpress.
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
There were no executable files found in this plugin2,066 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 24 | 53 | 856 |
CSS | 4 | 22 | 0 | 646 |
PO File | 2 | 210 | 218 | 472 |
JavaScript | 3 | 0 | 10 | 92 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/har.png | 17.47KB | 0.12KB | ▼ 99.33% |
imgs/icon.png | 18.02KB | 0.10KB | ▼ 99.43% |
imgs/no.png | 19.26KB | 7.06KB | ▼ 63.34% |
imgs/ver.png | 17.47KB | 0.12KB | ▼ 99.32% |