Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.28ms] Passed 4 tests
This is a short check of server-side resources used by Easy ADS or Text
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.05 | 35.07 ▼6.98 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.44 ▼5.43 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.25 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.69 ▼14.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.07 ▲1.08 |
Items /wp-admin/edit.php?post_type=duid-ads | 3.32 | 36.44 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=duid-ads | 3.26 | 52.38 |
Add New /wp-admin/post-new.php?post_type=duid-ads | 3.44 | 52.45 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_plugin_dadptplugin_stats_visits |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
category_children |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Easy ADS or Text
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 14.47 ▲0.08 | 1.68 ▼0.29 | 40.03 ▼7.51 |
Dashboard /wp-admin | 2,236 ▲51 | 5.84 ▼0.06 | 100.68 ▼13.58 | 39.96 ▼2.21 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.01 ▼0.04 | 43.52 ▲3.82 | 34.55 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,559 ▲17 | 23.33 ▲4.98 | 657.66 ▲55.19 | 51.16 ▲0.16 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.20 ▼0.03 | 95.88 ▼10.04 | 42.25 ▼2.11 |
Items /wp-admin/edit.php?post_type=duid-ads | 1,127 | 2.00 | 32.30 | 29.56 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=duid-ads | 1,476 | 2.14 | 34.86 | 34.24 |
Add New /wp-admin/post-new.php?post_type=duid-ads | 2,628 | 8.24 | 185.22 | 73.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_plugin_dadptplugin_stats_visits
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- category_children
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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)
Good news, no errors were detected
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/easy-ads-or-text/iduid-easy-ads.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/easy-ads-or-text/inc/meta_box_content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/easy-ads-or-text/inc/meta_box_is_check.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/easy-ads-or-text/inc/meta_box_count.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
easy-ads-or-text/iduid-easy-ads.php 85% from 13 tests
The main file in "Easy ADS or Text" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-ads-or-text.php" instead of "iduid-easy-ads.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)
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 plugin652 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 132 | 21 | 539 |
PO File | 1 | 28 | 29 | 91 |
JavaScript | 1 | 3 | 1 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected