90% simple-custom-content

Code Review | Simple Custom Content

WordPress plugin Simple Custom Content scored90%from 54 tests.

About plugin

  • Plugin page: simple-custom-con...
  • Plugin version: 20231025...
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2012
  • Latest release: Oct 26, 2023
  • Number of updates: 52
  • Update frequency: every 76.9 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /13,938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Simple Custom Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.61 ▼0.06
Dashboard /wp-admin3.32 ▼0.0245.16 ▼18.42
Posts /wp-admin/edit.php3.37 ▲0.0245.68 ▲0.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.47 ▼7.05
Media Library /wp-admin/upload.php3.24 ▲0.0237.16 ▲0.04
Custom Content /wp-admin/options-general.php?page=simple-custom-content/simple-custom-content.php3.2830.73

Server storage [IO: ▲0.34MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Simple Custom Content: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.69 ▲0.341.69 ▲0.0443.28 ▲1.41
Dashboard /wp-admin2,199 ▲225.65 ▲0.0582.31 ▼4.1840.66 ▲1.29
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0333.71 ▼2.3932.56 ▼3.07
Add New Post /wp-admin/post-new.php1,531 ▼423.41 ▲5.19678.60 ▲25.3755.41 ▼27.58
Media Library /wp-admin/upload.php1,401 ▼24.32 ▲0.12106.82 ▲7.2547.34 ▲1.99
Custom Content /wp-admin/options-general.php?page=simple-custom-content/simple-custom-content.php1,2091.7127.2840.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: customize, posts, rss, custom content, feeds...

simple-custom-content/simple-custom-content.php 92% from 13 tests

The entry point to "Simple Custom Content" version 20231025... is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "20231025...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected613 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP328789613

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions20
▷ Named functions20100.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