89% spinpack

Code Review | اسپینپک

WordPress plugin اسپینپک scored89%from 54 tests.

About plugin

  • Plugin page: spinpack
  • Plugin version: 6.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Sep 26, 2022
  • Number of updates: 15
  • Update frequency: every 19.9 days
  • Top authors: venoustarh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.07MB] [CPU: ▲12.32ms] Passed 4 tests

An overview of server-side resources used by اسپینپک
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.55 ▲1.0957.32 ▲13.80
Dashboard /wp-admin4.37 ▲1.0768.17 ▲14.81
Posts /wp-admin/edit.php4.48 ▲1.1365.29 ▲10.86
Add New Post /wp-admin/post-new.php6.95 ▲1.06112.96 ▲9.81
Media Library /wp-admin/upload.php4.29 ▲1.0650.99 ▲16.37
اسپینپک /wp-admin/admin.php?page=spinpack4.2947.67

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
spinpack
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for اسپینپک
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲19613.78 ▼1.005.37 ▲3.2837.81 ▼4.78
Dashboard /wp-admin2,212 ▲244.86 ▼1.05110.48 ▲2.7477.13 ▲35.29
Posts /wp-admin/edit.php2,107 ▲212.02 ▼0.0240.20 ▲3.1337.90 ▲4.73
Add New Post /wp-admin/post-new.php1,527 ▼623.28 ▲0.14641.39 ▼51.9951.86 ▼13.28
Media Library /wp-admin/upload.php1,400 ▲124.23 ▲0.03105.51 ▲1.9977.50 ▲32.27
اسپینپک /wp-admin/admin.php?page=spinpack1,1623.7154.9990.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • spinpack

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: free support, support, spinpack, support button

spinpack/spinpack.php 85% from 13 tests

The main file in "اسپینپک" v. 6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Domain Path: The domain path must begin with a forward slash character ("//")

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
There were no executable files found in this plugin10,020 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP722,1639779,222
PO File1154216397
Markdown2850379
CSS24015
SVG5005
JavaScript2222

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity21.12
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity6.81
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods180
▷ Static methods3117.22%
▷ Public methods180100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%