84% norooz92

Code Review | شمارش معکوس تا سال 1392 شمسی

WordPress plugin شمارش معکوس تا سال 1392 شمسی scored84%from 54 tests.

About plugin

  • Plugin page: norooz92
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 7, 2012
  • Latest release: Dec 7, 2012
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: progpars (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,455 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.11ms] Passed 4 tests

Server-side resources used by شمارش معکوس تا سال 1392 شمسی
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.74 ▼1.44
Dashboard /wp-admin3.31 ▼0.0446.04 ▼12.97
Posts /wp-admin/edit.php3.36 ▲0.0043.33 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.77 ▼11.98
Media Library /wp-admin/upload.php3.23 ▲0.0032.52 ▲2.38

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for شمارش معکوس تا سال 1392 شمسی
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲11113.86 ▼0.5110.88 ▲9.0842.74 ▼1.37
Dashboard /wp-admin2,195 ▲175.57 ▼0.1192.97 ▼22.6943.04 ▼1.47
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0433.97 ▼0.7234.26 ▼3.18
Add New Post /wp-admin/post-new.php1,526 ▼323.03 ▲0.03684.85 ▲58.5569.73 ▲22.83
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0695.94 ▼3.3243.67 ▲1.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/norooz92/norooz92.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Screen shot (screenshot-1.png) in preview) image required
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === norooz92 === )
You can take inspiration from this readme.txt

norooz92/norooz92.php Passed 13 tests

The primary PHP file in "شمارش معکوس تا سال 1392 شمسی" version 1.0 is used by WordPress to initiate all plugin functionality
91 characters long description:
نمایش لحظه شمار نوروز باستانی 1392 هجری شمسی در سایت

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin41 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13930
JavaScript21011

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 code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png2.96KB1.23KB▼ 58.27%