68% cazamba

Code Review | Cazamba

WordPress plugin Cazamba scored68%from 54 tests.

About plugin

  • Plugin page: cazamba
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Aug 30, 2013
  • Latest release: Apr 13, 2017
  • Number of updates: 10
  • Update frequency: every 132.2 days
  • Top authors: victoracano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,736 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼39.79ms] Passed 4 tests

Analyzing server-side resources used by Cazamba
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.23 ▼5.43
Dashboard /wp-admin3.00 ▼0.3524.05 ▼36.26
Posts /wp-admin/edit.php3.00 ▼0.3624.38 ▼27.84
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.41 ▼78.16
Media Library /wp-admin/upload.php3.00 ▼0.2326.43 ▼16.91
Cazamba /wp-admin/options-general.php?page=Cazamba3.0024.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Cazamba
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.15 ▼0.141.85 ▲0.3343.46 ▲2.01
Dashboard /wp-admin2,196 ▲195.79 ▲0.1085.99 ▼6.7243.10 ▼0.83
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0136.89 ▲1.1734.21 ▼1.87
Add New Post /wp-admin/post-new.php1,548 ▲323.21 ▲0.04681.69 ▲20.7756.33 ▼8.64
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.06103.95 ▼5.7948.02 ▲0.82
Cazamba /wp-admin/options-general.php?page=Cazamba7852.0224.3629.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Cazamba
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=Cazamba
    • > Notice in wp-content/plugins/cazamba/cazamba_admin.php+2
    Undefined index: cazamba_hidden

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cazamba/cazamba_admin.php:11
    • > PHP Notice
      Undefined index: cazamba_hidden in wp-content/plugins/cazamba/cazamba_admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cazamba/cazamba.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === cazamba === )
You can look at the official readme.txt

cazamba/cazamba.php Passed 13 tests

The principal PHP file in "Cazamba" v. 1.2 is loaded by WordPress automatically on each request
45 characters long description:
Plugin para implementação de script Cazamba

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin41 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121041

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin