Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.34ms] Passed 4 tests
Server-side resources used by Ad Short
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.49 ▲3.01 |
Dashboard /wp-admin | 3.36 ▲0.02 | 44.24 ▼13.04 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 42.96 ▼5.40 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 81.14 ▼9.63 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.22 ▼1.29 |
Ad Short /wp-admin/tools.php?page=ad_short | 3.24 | 27.50 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ad Short
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 14.30 ▼0.35 | 39.22 ▲37.52 | 39.44 ▲0.47 |
Dashboard /wp-admin | 2,228 ▲53 | 5.62 ▼0.11 | 88.61 ▼9.01 | 42.33 ▼2.75 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.04 ▲0.08 | 33.02 ▼9.60 | 35.53 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.51 ▲0.64 | 598.95 ▲12.02 | 73.42 ▲13.83 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.24 ▲0.04 | 98.34 ▲2.03 | 43.32 ▼5.69 |
Ad Short /wp-admin/tools.php?page=ad_short | 895 | 1.97 | 23.09 | 44.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=ad_short
- > Notice in wp-content/plugins/ad-short/ad_short.php+283
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ad-short/ad_short.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ad-short/template/options.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: ads within page, ads in post, mce editor buttons, ads in page, adsense...
ad-short/ad_short.php 92% from 13 tests
The entry point to "Ad Short" version 2.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ad-short.php" instead of "ad_short.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected400 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 54 | 53 | 218 |
CSS | 2 | 14 | 1 | 122 |
JavaScript | 1 | 0 | 0 | 60 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin