89% mkrapel-provincias-ciudades-argentina

Code Review | MkRapel Provincias y Ciudades de Argentina para WC

WordPress plugin MkRapel Provincias y Ciudades de Argentina para WC scored89%from 54 tests.

About plugin

  • Plugin page: mkrapel-provincia...
  • Plugin version: 3.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Sep 11, 2020
  • Number of updates: 50
  • Update frequency: every 0.3 days
  • Top authors: mkrapel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,382 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.04MB] [CPU: ▼7.60ms] Passed 4 tests

This is a short check of server-side resources used by MkRapel Provincias y Ciudades de Argentina para WC
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.79 ▲3.28
Dashboard /wp-admin3.35 ▲0.0547.34 ▼3.09
Posts /wp-admin/edit.php3.40 ▲0.0444.09 ▼4.29
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.24 ▼25.56
Media Library /wp-admin/upload.php3.27 ▲0.0433.98 ▲2.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by MkRapel Provincias y Ciudades de Argentina para WC
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.251.82 ▲0.0942.89 ▲1.83
Dashboard /wp-admin2,203 ▲155.83 ▲0.95101.61 ▼15.1439.10 ▼4.56
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0534.15 ▼3.8336.66 ▲0.92
Add New Post /wp-admin/post-new.php1,544 ▲1623.07 ▲4.69645.10 ▼7.5455.09 ▲3.53
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0094.98 ▼9.5245.11 ▼2.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
  • Requires php: Version format is invalid
The official readme.txt might help

mkrapel-provincias-ciudades-argentina/mkrapel-provincias-ciudades-argentina.php 92% from 13 tests

The main PHP script in "MkRapel Provincias y Ciudades de Argentina para WC" version 3.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 295 characters long)

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
No dangerous file extensions were detected1,552 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9701621,411
JavaScript1307141

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity32.50
▷ Minimum class complexity30.00
▷ Maximum class complexity35.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods414.81%
▷ Public methods2488.89%
▷ Protected methods13.70%
▷ Private methods27.41%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin