68% colobe-security

Code Review | Colobe Security

WordPress plugin Colobe Security scored 68% from 54 tests.

About plugin

  • Plugin page: colobe-security
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Sep 17, 2013
  • Latest release: Sep 30, 2013
  • Number of updates: 31
  • Update frequency: every 0.4 days
  • Top authors: pesapower (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 911 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼30.20ms] Passed 4 tests

A check of server-side resources used by Colobe Security
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.68 ▼8.88
Dashboard /wp-admin2.99 ▼0.3123.46 ▼22.11
Posts /wp-admin/edit.php3.00 ▼0.3626.15 ▼22.44
Add New Post /wp-admin/post-new.php2.99 ▼2.8924.90 ▼63.59
Media Library /wp-admin/upload.php2.99 ▼0.2319.57 ▼12.65
Colobe Security /wp-admin/plugins.php?page=colobe_security3.0021.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Colobe Security: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.161.62 ▼0.1238.63 ▼1.90
Dashboard /wp-admin2,213 ▲254.86 ▼0.08116.09 ▲12.9943.34 ▼0.38
Posts /wp-admin/edit.php2,093 ▲42.14 ▲0.1339.06 ▲2.4334.35 ▼3.84
Add New Post /wp-admin/post-new.php1,535 ▲218.12 ▼4.92601.36 ▲34.0165.90 ▲8.57
Media Library /wp-admin/upload.php1,392 ▲44.23 ▼0.0595.09 ▲0.5640.61 ▼0.99
Colobe Security /wp-admin/plugins.php?page=colobe_security8832.0524.5742.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught 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.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=colobe_security
    • > 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/plugins.php?page=colobe_security
    • > Warning in wp-content/plugins/colobe-security/colobe_admin.php+263
    include_once(wp-admin): failed to open stream: Success
    • > GET request to /wp-admin/plugins.php?page=colobe_security
    • > Warning in wp-content/plugins/colobe-security/colobe_admin.php+263
    include_once(): Failed opening '' for inclusion (include_path='.:/usr/share/php')

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/colobe-security/colobe_admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/colobe-security/colobe.php:125

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === colobe-security === )
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

colobe-security/colobe.php 92% from 13 tests

The main PHP file in "Colobe Security" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("colobe-security.php" instead of "colobe.php")

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
No dangerous file extensions were detected282 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34678282

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin