89% wcsdm

Code Review | WooReer

WordPress plugin WooReer scored89%from 54 tests.

About plugin

  • Plugin page: wcsdm
  • Plugin version: 2.1.15
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Jan 29, 2023
  • Number of updates: 177
  • Update frequency: every 10.5 days
  • Top authors: sofyansitorus (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

2,000+ active /35,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼16.00ms] Passed 4 tests

Analyzing server-side resources used by WooReer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.59 ▲5.39
Dashboard /wp-admin3.35 ▼0.0046.28 ▼16.82
Posts /wp-admin/edit.php3.40 ▲0.0448.28 ▼1.43
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.62 ▼44.75
Media Library /wp-admin/upload.php3.27 ▲0.0435.54 ▼0.99

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooReer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.66 ▼0.091.81 ▲0.0542.86 ▲0.79
Dashboard /wp-admin2,209 ▲244.88 ▼0.0197.32 ▼9.5236.77 ▼6.41
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0140.62 ▲5.9733.88 ▼1.13
Add New Post /wp-admin/post-new.php1,534 ▲123.24 ▼0.02620.66 ▼60.2251.24 ▼13.78
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0493.70 ▼8.0740.79 ▼5.79

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add a description for screenshot #7 in wcsdm/assets to your readme.txt
You can take inspiration from this readme.txt

wcsdm/wcsdm.php 85% from 13 tests

This is the main PHP file of "WooReer" version 2.1.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "3.0.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)

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 plugin4,145 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP105521,2222,636
JavaScript42971071,222
CSS2366287

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity58.50
▷ Minimum class complexity1.00
▷ Maximum class complexity285.00
Average method complexity5.79
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods73
▷ Static methods56.85%
▷ Public methods4460.27%
▷ Protected methods810.96%
▷ Private methods2128.77%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/marker.png2.49KB1.56KB▼ 37.47%
assets/img/marker-lg.png36.97KB15.91KB▼ 56.96%