84% savodxon

Code Review | Savodxon

WordPress plugin Savodxon scored84%from 54 tests.

About plugin

  • Plugin page: savodxon
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Nov 1, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: dilpora (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /838 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.52ms] Passed 4 tests

Analyzing server-side resources used by Savodxon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.45 ▲3.24
Dashboard /wp-admin3.32 ▼0.0347.58 ▼17.70
Posts /wp-admin/edit.php3.37 ▲0.0143.20 ▼9.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.92 ▼20.15
Media Library /wp-admin/upload.php3.24 ▲0.0137.30 ▼2.48

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Savodxon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.061.71 ▲0.1942.62 ▲3.34
Dashboard /wp-admin2,198 ▲215.59 ▼0.0885.60 ▼3.6042.72 ▲2.77
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0336.73 ▼4.1236.19 ▼2.22
Add New Post /wp-admin/post-new.php1,527 ▼122.95 ▼0.15613.41 ▼54.3458.65 ▲6.68
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.03100.60 ▼9.1445.54 ▼1.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/savodxon/savodxon.php:15

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Please fix this invalid url: "N/A"
You can take inspiration from this readme.txt

savodxon/savodxon.php Passed 13 tests

The main PHP script in "Savodxon" version 1.0 is automatically included on every request by WordPress
57 characters long description:
TinyMCE tahrir oynasi uchun savodxonni tekshirish plagini

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin211 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1186179
PHP1151029
CSS1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
check.png0.88KB0.80KB▼ 9.63%
clear.png0.96KB0.77KB▼ 19.43%