10% coceca

Code Review | CoCeCa

WordPress plugin CoCeCa scored10%from 54 tests.

About plugin

  • Plugin page: coceca
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2
  • WordPress version: 6.3.1
  • First release: May 26, 2015
  • Latest release: Jan 27, 2016
  • Number of updates: 27
  • Update frequency: every 9.3 days
  • Top authors: CoCeCa (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /1,398 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/coceca/includes/coceca_plugin-class.php+133
    Trying to access array offset on value of type null

Server metrics [RAM: ▼0.65MB] [CPU: ▼30.88ms] Passed 4 tests

Server-side resources used by CoCeCa
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.34 ▲0.97
Dashboard /wp-admin3.32 ▲0.0129.80 ▼22.11
Posts /wp-admin/edit.php3.32 ▼0.0429.03 ▼20.92
Add New Post /wp-admin/post-new.php3.32 ▼2.5727.70 ▼69.41
Media Library /wp-admin/upload.php3.32 ▲0.0926.73 ▼11.09
Home /wp-admin/admin.php?page=add_exentions3.3223.99

Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/coceca/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
EXT_SITE_URL
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CoCeCa
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲19614.02 ▼0.576.32 ▲4.4042.51 ▼0.95
Dashboard /wp-admin2,255 ▲494.86 ▼1.01112.41 ▲5.4142.95 ▼4.54
Posts /wp-admin/edit.php2,131 ▲282.02 ▲0.0236.64 ▼6.7534.52 ▼5.67
Add New Post /wp-admin/post-new.php1,557 ▲1617.64 ▼5.48633.78 ▼93.9152.10 ▼1.11
Media Library /wp-admin/upload.php1,428 ▲344.25 ▼0.22101.61 ▼2.7246.65 ▼5.79
Home /wp-admin/admin.php?page=add_exentions8982.0325.9727.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • EXT_SITE_URL
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=add_exentions
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/coceca/includes/templates/email_popup.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/coceca/includes/plugin-dependencies.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coceca/includes/coceca_plugin-class.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checkDomainIs_boolean() in wp-content/plugins/coceca/includes/templates/list_extensions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/coceca/coceca.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coceca/includes/templates/get_started.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=add_exentions
    • > Network (severe)
    https://coceca.com/members_area/coceca/js/script.js?ver=2.2 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=add_exentions
    • > Network (severe)
    https://coceca.com/members_area/coceca/css/style.css?ver=2.2 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=add_exentions
    • > Network (severe)
    https://coceca.com/members_area/coceca/js/fancybox/jquery.fancybox.css?ver=2.2 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=add_exentions
    • > Network (severe)
    https://coceca.com/members_area/coceca/js/fancybox/jquery.fancybox.js?ver=2.2 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=add_exentions
    • > Network (severe)
    https://coceca.com/members_area/coceca/js/check_host_email.js?ver=2.2 - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: increase visitor engagement, cta, collection of plugins, coceca, call to action

coceca/coceca.php 92% from 13 tests

This is the main PHP file of "CoCeCa" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,293 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP72953141,293

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity39.25
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods48
▷ Static methods3266.67%
▷ Public methods3879.17%
▷ Protected methods714.58%
▷ Private methods36.25%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin