89% warmupreps

Code Review | WarmupReps

WordPress plugin WarmupReps scored89%from 54 tests.

About plugin

  • Plugin page: warmupreps
  • Plugin version: 1.0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Apr 25, 2021
  • Latest release: Feb 21, 2022
  • Number of updates: 5
  • Update frequency: every 63.0 days
  • Top authors: powersurge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /412 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.56ms] Passed 4 tests

This is a short check of server-side resources used by WarmupReps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.87 ▼2.79
Dashboard /wp-admin3.31 ▲0.0045.21 ▼10.84
Posts /wp-admin/edit.php3.36 ▲0.0046.62 ▼11.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.38 ▼1.53
Media Library /wp-admin/upload.php3.23 ▲0.0032.39 ▲0.03

Server storage [IO: ▲0.90MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: 2 new tables, 7 new options
New tables
wp_wmp_workout
wp_wmp_excercise
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
wmp_default_data_imported

Browser metrics Passed 4 tests

A check of browser resources used by WarmupReps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.231.62 ▼0.0938.14 ▼7.41
Dashboard /wp-admin2,203 ▲144.86 ▼0.06114.48 ▼7.9642.29 ▼4.00
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0139.95 ▲1.8935.18 ▲2.66
Add New Post /wp-admin/post-new.php1,545 ▼018.45 ▲0.12602.06 ▼4.3165.53 ▼2.60
Media Library /wp-admin/upload.php1,391 ▲94.28 ▲0.0795.66 ▼2.7643.42 ▼1.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Programs editor. Customize the name and description and add new programs.), #2 (Exercise editor.), #3 (Workout Routines editor. This is where you can edit workout routines.), #4 (Settings. The plugin settings page.), #5 (User interface.)
  • Plugin Name: You should set the name of your plugin on the first line ( === warmupreps === )
The official readme.txt is a good inspiration

warmupreps/warmupreps.php Passed 13 tests

The primary PHP file in "WarmupReps" version 1.0.0.0 is used by WordPress to initiate all plugin functionality
106 characters long description:
Easily calculate and log your workout routines from popular strength training programs or create your own.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,313 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS353571,454
PHP192729661,376
JavaScript45290483

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.11
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods74
▷ Static methods68.11%
▷ Public methods5777.03%
▷ Protected methods1216.22%
▷ Private methods56.76%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.73MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png502.52KB189.65KB▼ 62.26%
screenshot-1.png41.29KB17.58KB▼ 57.43%
screenshot-3.png124.75KB54.12KB▼ 56.61%
screenshot-2.png50.68KB22.13KB▼ 56.33%
screenshot-4.png27.93KB11.72KB▼ 58.04%