Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.80ms] Passed 4 tests
This is a short check of server-side resources used by Text Advertisements
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.98 ▲4.97 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.75 ▼3.50 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 44.57 ▲0.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 82.58 ▼9.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.81 ▲5.16 |
باگ های امنیتی /wp-admin/admin.php?page=textads_security | 3.24 | 32.61 |
Add new advertisement /wp-admin/post-new.php?post_type=textads | 3.31 | 43.20 |
افزونه و قالب ها /wp-admin/admin.php?page=textads_security_plugins_themes | 3.26 | 30.98 |
پکیج های آموزشی /wp-admin/admin.php?page=textads_security_packages | 3.24 | 32.03 |
text advertisements /wp-admin/edit.php?post_type=textads | 3.31 | 33.87 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Text Advertisements
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲130 | 13.14 ▼1.13 | 1.77 ▲0.13 | 40.01 ▼2.32 |
Dashboard /wp-admin | 2,269 ▲80 | 5.82 ▲0.87 | 113.28 ▲7.72 | 83.49 ▲41.93 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.06 ▲0.05 | 36.31 ▲2.74 | 40.95 ▲6.85 |
Add New Post /wp-admin/post-new.php | 1,565 ▲36 | 17.51 ▼0.84 | 716.77 ▲92.81 | 56.75 ▼1.26 |
Media Library /wp-admin/upload.php | 1,448 ▲57 | 4.25 ▲0.00 | 96.39 ▼3.71 | 83.41 ▲40.96 |
باگ های امنیتی /wp-admin/admin.php?page=textads_security | 962 | 2.02 | 23.99 | 54.42 |
Add new advertisement /wp-admin/post-new.php?post_type=textads | 1,598 | 2.60 | 46.53 | 64.25 |
افزونه و قالب ها /wp-admin/admin.php?page=textads_security_plugins_themes | 1,192 | 2.15 | 22.89 | 47.85 |
پکیج های آموزشی /wp-admin/admin.php?page=textads_security_packages | 974 | 2.03 | 28.62 | 39.25 |
text advertisements /wp-admin/edit.php?post_type=textads | 1,113 | 1.94 | 33.07 | 35.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/text-advertisements/textads_packages.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-advertisements/textads_menu_setup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/text-advertisements/includes/posttype.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/text-advertisements/textads_pluginsthemes.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/text-advertisements/textads_bugs.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-advertisements/includes/metaboxes.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-advertisements/textads_menu_setup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/text-advertisements/includes/shortcodes.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Screen shot (screenshot-1.png) English add new advertisement.), #2 (Screen shot (screenshot-2.png) English widget advertisement preview.), #3 (Screen shot (screenshot-3.png) Persian add new advertisement.), #4 (Screen shot (screenshot-4.png) Persian widget advertisement preview.)
text-advertisements/Text-Advertisements.php 92% from 13 tests
The primary PHP file in "Text Advertisements" version 2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("text-advertisements.php" instead of "Text-Advertisements.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 detected666 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 77 | 9 | 552 |
PO File | 2 | 30 | 34 | 92 |
CSS | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/plugins/jahanpayl-wordpress-edd-gateway-with-sms.png | 31.54KB | 13.14KB | ▼ 58.33% |
images/packages/wordpress-theme-plugins-translation-package.png | 48.66KB | 18.49KB | ▼ 61.99% |
screenshot-2.png | 6.22KB | 2.34KB | ▼ 62.32% |
screenshot-3.png | 6.22KB | 2.37KB | ▼ 61.92% |
images/themes/beetube.png | 53.93KB | 21.16KB | ▼ 60.75% |