10% caperz

Code Review | Caperz

WordPress plugin Caperz scored 10% from 54 tests.

About plugin

  • Plugin page: caperz
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 5.8.1
  • First release: Mar 12, 2014
  • Latest release: Mar 12, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: churwitz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 808 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/caperz/caperz.php+121
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼197.73ms] Passed 4 tests

An overview of server-side resources used by Caperz
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.984.88 ▼23.66
Dashboard /wp-admin1.76 ▼1.295.53 ▼44.90
Posts /wp-admin/edit.php1.76 ▼1.345.30 ▼42.38
Add New Post /wp-admin/post-new.php1.76 ▼3.675.46 ▼672.96
Media Library /wp-admin/upload.php1.76 ▼1.246.82 ▼30.66

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_wp_caperz

Browser metrics Passed 4 tests

This is an overview of browser requirements for Caperz
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.99 ▲0.3912.49 ▲3.7952.87 ▼1.63
Dashboard /wp-admin2,967 ▲396.10 ▼0.01147.96 ▼13.93126.40 ▲6.34
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0066.66 ▼1.5393.21 ▼9.05
Add New Post /wp-admin/post-new.php1,500 ▼018.78 ▲0.02421.47 ▲13.95111.60 ▲0.20
Media Library /wp-admin/upload.php1,807 ▼35.04 ▲0.01171.32 ▲15.56142.85 ▲25.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/caperz/caperz.php+121
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_wp_caperz

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/caperz/caperz.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === caperz === )
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Add a description for screenshot #2 in caperz/assets to your readme.txt
You can take inspiration from this readme.txt

caperz/caperz.php Passed 13 tests

The principal PHP file in "Caperz" v. 0.1 is loaded by WordPress automatically on each request
37 characters long description:
Show activities for kids on your blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142089

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin