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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.34 ▲0.97 |
Dashboard /wp-admin | 3.32 ▲0.01 | 29.80 ▼22.11 |
Posts /wp-admin/edit.php | 3.32 ▼0.04 | 29.03 ▼20.92 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.57 | 27.70 ▼69.41 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 26.73 ▼11.09 |
Home /wp-admin/admin.php?page=add_exentions | 3.32 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲196 | 14.02 ▼0.57 | 6.32 ▲4.40 | 42.51 ▼0.95 |
Dashboard /wp-admin | 2,255 ▲49 | 4.86 ▼1.01 | 112.41 ▲5.41 | 42.95 ▼4.54 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.02 ▲0.02 | 36.64 ▼6.75 | 34.52 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,557 ▲16 | 17.64 ▼5.48 | 633.78 ▼93.91 | 52.10 ▼1.11 |
Media Library /wp-admin/upload.php | 1,428 ▲34 | 4.25 ▼0.22 | 101.61 ▼2.72 | 46.65 ▼5.79 |
Home /wp-admin/admin.php?page=add_exentions | 898 | 2.03 | 25.97 | 27.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 295 | 314 | 1,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 code | 0.38 |
Average class complexity | 39.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 32 | 66.67% |
▷ Public methods | 38 | 79.17% |
▷ Protected methods | 7 | 14.58% |
▷ Private methods | 3 | 6.25% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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