83% ccsouba

Code Review | ccSouba

WordPress plugin ccSouba scored83%from 54 tests.

About plugin

  • Plugin page: ccsouba
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.5-4.3.5
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Aug 3, 2016
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: kazunii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.30ms] Passed 4 tests

Server-side resources used by ccSouba
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.32 ▲5.33
Dashboard /wp-admin3.32 ▼0.0249.55 ▼13.88
Posts /wp-admin/edit.php3.37 ▲0.0250.27 ▼3.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.80 ▼17.52
Media Library /wp-admin/upload.php3.25 ▲0.0240.29 ▲1.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ccSouba
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.14 ▼1.262.04 ▲0.1643.95 ▲1.59
Dashboard /wp-admin2,206 ▲184.84 ▼1.03109.67 ▲0.8937.44 ▼10.11
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0233.97 ▼3.8234.74 ▲0.54
Add New Post /wp-admin/post-new.php1,514 ▼1417.37 ▼6.01665.32 ▼28.0855.17 ▲4.55
Media Library /wp-admin/upload.php1,388 ▼04.17 ▲0.01102.75 ▼2.2945.83 ▼4.80

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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: Call to undefined function add_shortcode() in wp-content/plugins/ccsouba/ccSouba.php:135

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (/tags/0.0.1/1.png), #2 (/tags/0.0.1/2.png)
  • Donate link: Invalid url: ""
The official readme.txt might help

ccsouba/ccSouba.php 92% from 13 tests

The main file in "ccSouba" v. 0.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ccsouba.php" instead of "ccSouba.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132994

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin