90% parcello

Code Review | Parcello

WordPress plugin Parcello scored90%from 54 tests.

About plugin

  • Plugin page: parcello
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2022
  • Latest release: Feb 13, 2023
  • Number of updates: 27
  • Update frequency: every 11.8 days
  • Top authors: tjerkdames (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /757 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: ▲0.12MB] [CPU: ▼37.97ms] Passed 4 tests

A check of server-side resources used by Parcello
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1438.07 ▼13.59
Dashboard /wp-admin3.52 ▲0.10379.28 ▼107.40
Posts /wp-admin/edit.php3.55 ▲0.1950.02 ▼10.75
Add New Post /wp-admin/post-new.php6.01 ▲0.1388.67 ▼20.14
Media Library /wp-admin/upload.php3.35 ▲0.1340.36 ▲5.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Parcello
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11314.69 ▲0.341.58 ▼0.4042.27 ▼9.56
Dashboard /wp-admin2,254 ▲805.57 ▼0.0988.30 ▲0.1287.13 ▲44.18
Posts /wp-admin/edit.php2,141 ▲411.96 ▼0.0434.29 ▼5.3537.33 ▼0.46
Add New Post /wp-admin/post-new.php1,563 ▲3423.16 ▲0.06654.33 ▲40.79173.10 ▲108.53
Media Library /wp-admin/upload.php1,435 ▲354.10 ▼0.09112.77 ▲7.9667.13 ▲23.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: shipment tracking

parcello/parcello.php Passed 13 tests

Analyzing the main PHP file in "Parcello" version 1.0.6
50 characters long description:
Parcello let's your customers track their packages

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
Everything looks great! No dangerous files found in this plugin2,188 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP162462881,367
CSS11173500
PO File189100232
JavaScript117176
SVG20013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods63
▷ Static methods11.59%
▷ Public methods5180.95%
▷ Protected methods00.00%
▷ Private methods1219.05%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.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
There are no PNG files in this plugin