83% ec-developer-mode-integration-for-cloudflare

Code Review | EC Developer Mode Integration for Cloudflare

WordPress plugin EC Developer Mode Integration for Cloudflare scored83%from 54 tests.

About plugin

  • Plugin page: ec-developer-mode...
  • Plugin version: 1.53
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Feb 17, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ralphiooooo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /807 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.84ms] Passed 4 tests

Server-side resources used by EC Developer Mode Integration for Cloudflare
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.71 ▲0.36
Dashboard /wp-admin3.31 ▲0.0150.65 ▼3.61
Posts /wp-admin/edit.php3.36 ▲0.0150.41 ▼5.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.72 ▼22.96
Media Library /wp-admin/upload.php3.23 ▲0.0138.76 ▲4.96

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

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

Browser metrics Passed 4 tests

Checking browser requirements for EC Developer Mode Integration for Cloudflare
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.35 ▼0.211.64 ▼0.1238.73 ▼7.58
Dashboard /wp-admin2,211 ▲315.61 ▲0.04101.24 ▼0.7349.96 ▲5.33
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.0039.63 ▲2.9234.57 ▼0.44
Add New Post /wp-admin/post-new.php1,548 ▲2023.25 ▲0.16654.75 ▼15.9749.17 ▼8.19
Media Library /wp-admin/upload.php1,410 ▲104.17 ▼0.0298.17 ▼8.5439.67 ▼4.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ec-developer-mode-integration-for-cloudflare/EC-Developer-Mode-Integration-for-Cloudflare.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === ec-developer-mode-integration-for-cloudflare === )
  • Screenshots: Add an image for screenshot #1 (screen1.png Very simple plugin config.)
You can look at the official readme.txt

ec-developer-mode-integration-for-cloudflare/EC-Developer-Mode-Integration-for-Cloudflare.php 92% from 13 tests

The principal PHP file in "EC Developer Mode Integration for Cloudflare" v. 1.53 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ec-developer-mode-integration-for-cloudflare.php" instead of "EC-Developer-Mode-Integration-for-Cloudflare.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 detected209 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24841209

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected