89% lestvica

Code Review | Lestvica SNL

WordPress plugin Lestvica SNL scored89%from 54 tests.

About plugin

  • Plugin page: lestvica
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.6
  • WordPress version: 6.3.1
  • First release: Feb 8, 2017
  • Latest release: Feb 9, 2017
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: makihekakodo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /480 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.01MB] [CPU: ▼6.59ms] Passed 4 tests

Server-side resources used by Lestvica SNL
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.55 ▼1.04
Dashboard /wp-admin3.31 ▲0.0148.27 ▼4.01
Posts /wp-admin/edit.php3.37 ▲0.0154.60 ▲1.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.66 ▼22.58
Media Library /wp-admin/upload.php3.24 ▲0.0137.15 ▲2.59

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_lestvica
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Lestvica SNL
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.341.70 ▲0.2442.80 ▲1.91
Dashboard /wp-admin2,195 ▲185.60 ▼0.0594.93 ▲3.9939.09 ▼4.60
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0240.37 ▼2.3136.40 ▼3.00
Add New Post /wp-admin/post-new.php1,534 ▲818.27 ▼4.68618.89 ▼0.8573.41 ▲14.44
Media Library /wp-admin/upload.php1,397 ▼04.20 ▼0.0496.21 ▼9.3845.30 ▲3.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_lestvica
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "/"
  • Plugin Name: You should set the name of your plugin on the first line ( === lestvica === )
  • Screenshots: Add images for these screenshots: #1 (Widget admin page form.), #2 (Widget front page display.)
The official readme.txt might help

lestvica/lestvica.php Passed 13 tests

The main file in "Lestvica SNL" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Automatic update of 3. Slovenian soccer league standings.

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
There were no executable files found in this plugin1,455 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP72272651,455

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity86.25
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods89
▷ Static methods11.12%
▷ Public methods7382.02%
▷ Protected methods1617.98%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin