89% pimp-my-site-christmas-edition

Code Review | Pimp my Site - Christmas Edition

WordPress plugin Pimp my Site - Christmas Edition scored89%from 54 tests.

About plugin

  • Plugin page: pimp-my-site-chri...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Oct 27, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: themosaurus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /1,665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼0.84ms] Passed 4 tests

Analyzing server-side resources used by Pimp my Site - Christmas Edition
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3645.47 ▲5.88
Dashboard /wp-admin3.71 ▲0.4047.91 ▲2.37
Posts /wp-admin/edit.php3.82 ▲0.4649.54 ▲1.56
Add New Post /wp-admin/post-new.php6.29 ▲0.4093.76 ▼6.09
Media Library /wp-admin/upload.php3.63 ▲0.4034.99 ▼1.21
Pimp my Site - Christmas Edition /wp-admin/options-general.php?page=pimp-my-site3.6142.93

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Pimp my Site - Christmas Edition
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21814.14 ▼0.4718.20 ▲16.4338.03 ▼11.96
Dashboard /wp-admin2,207 ▲165.77 ▲0.8595.78 ▼5.6238.33 ▼3.97
Posts /wp-admin/edit.php2,096 ▲42.06 ▲0.0139.86 ▼0.8235.12 ▼0.88
Add New Post /wp-admin/post-new.php1,535 ▼723.50 ▲5.38619.27 ▼61.2958.95 ▲10.00
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0897.73 ▼16.9741.35 ▼7.50
Pimp my Site - Christmas Edition /wp-admin/options-general.php?page=pimp-my-site14,4413.84113.29115.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in pimp-my-site-christmas-edition/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

pimp-my-site-christmas-edition/pimp-my-site.php 85% from 13 tests

"Pimp my Site - Christmas Edition" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pimp-my-site-christmas-edition.php" instead of "pimp-my-site.php")

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
No dangerous file extensions were detected25,791 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript154,5001,20216,907
SVG58004,562
CSS1246302,849
PHP52493061,473

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity41.67
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3692.31%
▷ Protected methods00.00%
▷ Private methods37.69%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/cursors/christmas/cursor-5.png1.40KB1.04KB▼ 25.94%
assets/images/cursors/christmas/cursor-1.png1.73KB1.46KB▼ 15.77%
assets/images/cursors/christmas/cursor-3.png1.94KB1.51KB▼ 21.95%
assets/images/cursors/christmas/cursor-2.png1.37KB1.04KB▼ 23.79%
assets/images/cursors/christmas/cursor-4.png1.35KB1.10KB▼ 18.32%