Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.80MB] [CPU: ▼201.32ms] Passed 4 tests
This is a short check of server-side resources used by تبلیغات سپیدمان
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.16 | 34.99 ▲10.04 |
Dashboard /wp-admin | 2.85 ▼0.21 | 24.16 ▼15.12 |
Posts /wp-admin/edit.php | 2.85 ▼0.26 | 20.27 ▼23.48 |
Add New Post /wp-admin/post-new.php | 2.85 ▼2.58 | 22.22 ▼755.30 |
Media Library /wp-admin/upload.php | 2.85 ▼0.15 | 21.03 ▼11.38 |
تنظیمات /wp-admin/admin.php?page=sepideman-ad-settings | 2.85 | 24.46 |
راهنما /wp-admin/admin.php?page=sepideman-ad-help | 2.85 | 23.10 |
تبلیغات سپیدمان /wp-admin/admin.php?page=sepideman-ad | 2.85 | 28.80 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for تبلیغات سپیدمان
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲254 | 16.31 ▲0.68 | 17.64 ▲8.82 | 47.79 ▼9.02 |
Dashboard /wp-admin | 2,993 ▲56 | 6.15 ▲0.02 | 161.23 ▲14.44 | 146.94 ▲35.25 |
Posts /wp-admin/edit.php | 2,796 ▲57 | 2.73 ▲0.01 | 67.55 ▲1.43 | 93.98 ▲5.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼157 | 18.50 ▲2.47 | 376.83 ▼24.18 | 115.30 ▲9.09 |
Media Library /wp-admin/upload.php | 1,790 ▼17 | 5.08 ▲0.06 | 133.58 ▼16.59 | 153.15 ▲41.91 |
تنظیمات /wp-admin/admin.php?page=sepideman-ad-settings | 1,074 | 2.36 | 55.44 | 88.92 |
راهنما /wp-admin/admin.php?page=sepideman-ad-help | 1,151 | 2.36 | 55.48 | 116.12 |
تبلیغات سپیدمان /wp-admin/admin.php?page=sepideman-ad | 1,067 | 2.37 | 61.35 | 77.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/sepideman-ad/sepideman-ad.php+23
Use of undefined constant intval - assumed 'intval' (this will throw an Error in a future version of PHP)
Smoke tests 75% 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)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sepideman-ad
- > Warning in wp-content/plugins/sepideman-ad/sepideman-ad.php+23
Use of undefined constant intval - assumed 'intval' (this will throw an Error in a future version of PHP)
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: ads, anetwork, advertising, sepideman, shortcode
sepideman-ad/sepideman-ad.php Passed 13 tests
The main file in "تبلیغات سپیدمان" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
افزونه تبلیغات کلیکی سپیدمان برای شبکه تبلیغاتی anetwork
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected213 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 10 | 198 |
JavaScript | 1 | 3 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 10 | |
▷ Named functions | 10 | 100.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
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/zartoshtsepideman-80.png | 12.64KB | 4.64KB | ▼ 63.31% |
images/insta.png | 13.28KB | 4.90KB | ▼ 63.13% |
images/sepideman_ad.png | 1.54KB | 1.56KB | 0.00% |
images/securitexperts-80.png | 9.64KB | 3.98KB | ▼ 58.74% |
images/anetwork.png | 7.39KB | 4.92KB | ▼ 33.51% |