84% sepideman-ad

Code Review | تبلیغات سپیدمان

WordPress plugin تبلیغات سپیدمان scored 84% from 54 tests.

About plugin

  • Plugin page: sepideman-ad
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 5.8.1
  • First release: Apr 15, 2015
  • Latest release: May 29, 2018
  • Number of updates: 7
  • Update frequency: every 163.0 days
  • Top authors: zartosht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 882 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1634.99 ▲10.04
Dashboard /wp-admin2.85 ▼0.2124.16 ▼15.12
Posts /wp-admin/edit.php2.85 ▼0.2620.27 ▼23.48
Add New Post /wp-admin/post-new.php2.85 ▼2.5822.22 ▼755.30
Media Library /wp-admin/upload.php2.85 ▼0.1521.03 ▼11.38
تنظیمات /wp-admin/admin.php?page=sepideman-ad-settings2.8524.46
راهنما /wp-admin/admin.php?page=sepideman-ad-help2.8523.10
تبلیغات سپیدمان /wp-admin/admin.php?page=sepideman-ad2.8528.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,850 ▲25416.31 ▲0.6817.64 ▲8.8247.79 ▼9.02
Dashboard /wp-admin2,993 ▲566.15 ▲0.02161.23 ▲14.44146.94 ▲35.25
Posts /wp-admin/edit.php2,796 ▲572.73 ▲0.0167.55 ▲1.4393.98 ▲5.48
Add New Post /wp-admin/post-new.php1,526 ▼15718.50 ▲2.47376.83 ▼24.18115.30 ▲9.09
Media Library /wp-admin/upload.php1,790 ▼175.08 ▲0.06133.58 ▼16.59153.15 ▲41.91
تنظیمات /wp-admin/admin.php?page=sepideman-ad-settings1,0742.3655.4488.92
راهنما /wp-admin/admin.php?page=sepideman-ad-help1,1512.3655.48116.12
تبلیغات سپیدمان /wp-admin/admin.php?page=sepideman-ad1,0672.3761.3577.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:
LanguageFilesBlank linesComment linesLines of code
PHP11110198
JavaScript13015

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 code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/zartoshtsepideman-80.png12.64KB4.64KB▼ 63.31%
images/insta.png13.28KB4.90KB▼ 63.13%
images/sepideman_ad.png1.54KB1.56KB0.00%
images/securitexperts-80.png9.64KB3.98KB▼ 58.74%
images/anetwork.png7.39KB4.92KB▼ 33.51%