79% makesweat

Code Review | Makesweat

WordPress plugin Makesweat scored79%from 54 tests.

About plugin

  • Plugin page: makesweat
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jun 14, 2017
  • Latest release: Jun 14, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: makesweat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.04ms] Passed 4 tests

This is a short check of server-side resources used by Makesweat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.90 ▲2.09
Dashboard /wp-admin3.33 ▲0.0344.95 ▼6.07
Posts /wp-admin/edit.php3.38 ▲0.0241.37 ▼4.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.27 ▼7.00
Media Library /wp-admin/upload.php3.25 ▲0.0335.66 ▲1.92
Makesweat /wp-admin/options-general.php?page=makesweat3.1934.57

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Makesweat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.471.71 ▲0.1143.75 ▲5.04
Dashboard /wp-admin2,210 ▲225.90 ▲0.06109.66 ▼5.3243.15 ▲0.03
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0136.60 ▼1.2735.08 ▲2.37
Add New Post /wp-admin/post-new.php1,542 ▲618.44 ▼4.77615.53 ▼45.3465.26 ▲3.36
Media Library /wp-admin/upload.php1,397 ▲64.23 ▼0.0998.32 ▲2.6042.13 ▼0.45
Makesweat /wp-admin/options-general.php?page=makesweat7892.0624.9726.09

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: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • makesweat_clubid
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=makesweat
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=makesweat
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/makesweat/makesweat.php:95

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: calendar, mindbodyonline, membership, event, active...

makesweat/makesweat.php Passed 13 tests

Analyzing the main PHP file in "Makesweat" version 0.1
49 characters long description:
Add the power of Makesweat to your Wordpress site

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
Good job! No executable or dangerous file extensions detected164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15213145
JavaScript19019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin