84% climbpress

Code Review | ClimbPress

WordPress plugin ClimbPress scored 84% from 54 tests.

About plugin

  • Plugin page: climbpress
  • Plugin version: 0.3.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Jul 6, 2023
  • Number of updates: 9
  • Update frequency: every 38.8 days
  • Top authors: EdwardBock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 273 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by ClimbPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.44 ▼1.16
Dashboard /wp-admin3.31 ▲0.0043.28 ▼6.74
Posts /wp-admin/edit.php3.36 ▲0.0045.59 ▼2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.55 ▼5.66
Media Library /wp-admin/upload.php3.23 ▲0.0034.62 ▼6.63

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ClimbPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.221.82 ▼0.0239.08 ▼4.92
Dashboard /wp-admin2,203 ▲155.83 ▼0.13100.80 ▼3.1641.20 ▼5.34
Posts /wp-admin/edit.php2,092 ▲62.04 ▲0.0234.73 ▼1.6929.80 ▼4.02
Add New Post /wp-admin/post-new.php1,533 ▼923.50 ▲5.12662.92 ▲74.8969.25 ▲9.74
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0698.86 ▼0.7741.23 ▲0.31

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Model\\GradingSystem\\AbsGradingSystem' not found in wp-content/plugins/climbpress/classes/Model/GradingSystem/Hueco.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Components\\Component' not found in wp-content/plugins/climbpress/classes/Menu.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Components\\Database' not found in wp-content/plugins/climbpress/classes/Store/GradingSystemsSource.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Components\\Component' not found in wp-content/plugins/climbpress/classes/Assets.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Model\\GradingSystem\\AbsGradingSystem' not found in wp-content/plugins/climbpress/classes/Model/GradingSystem/Fontainebleau.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Model\\GradingSystem\\AbsGradingSystem' not found in wp-content/plugins/climbpress/classes/Model/GradingSystem/French.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Components\\Component' not found in wp-content/plugins/climbpress/classes/RouteMetaController.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Components\\Component' not found in wp-content/plugins/climbpress/classes/Export.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ClimbPress\\Components\\Database' not found in wp-content/plugins/climbpress/classes/Store/RoutesSource.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'ClimbPress\\View\\IView' not found in wp-content/plugins/climbpress/classes/View/GradingScalesTable.php:7

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: database, climbing, management

climbpress/plugin.php 92% from 13 tests

The main file in "ClimbPress" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("climbpress.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,847 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP475605442,460
JavaScript6260206
PO File24548129
CSS28031
JSON20021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces2
Traits0
Classes34
▷ Abstract classes411.76%
▷ Concrete classes3088.24%
▷ Final classes00.00%
Methods166
▷ Static methods2716.27%
▷ Public methods15090.36%
▷ Protected methods00.00%
▷ Private methods169.64%
Functions53
▷ Named functions00.00%
▷ Anonymous functions53100.00%
Constants17
▷ Global constants00.00%
▷ Class constants17100.00%
▷ Public constants17100.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
There were not PNG files found in your plugin