84% content-enhancer

Code Review | Content Enhancer

WordPress plugin Content Enhancer scored84%from 54 tests.

About plugin

  • Plugin page: content-enhancer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Oct 25, 2013
  • Latest release: Oct 25, 2013
  • Number of updates: 2
  • Update frequency: every 9.0 days
  • Top authors: gvanto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /928 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.30MB] [CPU: ▼16.51ms] Passed 4 tests

Analyzing server-side resources used by Content Enhancer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0232.58 ▼7.83
Dashboard /wp-admin3.34 ▲0.0349.65 ▼0.00
Posts /wp-admin/edit.php3.39 ▲0.0347.83 ▼2.31
Add New Post /wp-admin/post-new.php4.63 ▼1.2640.84 ▼54.21
Media Library /wp-admin/upload.php3.26 ▲0.0335.34 ▼1.70
Content Enhancer /wp-admin/options-general.php?page=content_enhancer_menu3.2335.04

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Content Enhancer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.15 ▼0.421.99 ▲0.0642.71 ▼4.82
Dashboard /wp-admin2,199 ▲225.62 ▼0.0595.95 ▲4.0242.99 ▲0.73
Posts /wp-admin/edit.php2,104 ▲12.01 ▼0.0239.59 ▼5.5636.76 ▼2.46
Add New Post /wp-admin/post-new.php1,529 ▲323.42 ▼0.08672.53 ▲5.3453.06 ▼0.35
Media Library /wp-admin/upload.php1,401 ▲44.24 ▼0.00101.72 ▼1.0541.70 ▼4.63
Content Enhancer /wp-admin/options-general.php?page=content_enhancer_menu8811.9928.7828.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-enhancer/content-enhancer.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: snippets, adsense, shortcodes, javascript, html...

content-enhancer/content-enhancer.php Passed 13 tests

The main PHP file in "Content Enhancer" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
This plugin allows you to insert html/javascript code into your post's content in a variety of different ways.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin175 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16657175

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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
No PNG files were detected