84% simple-custom-content-adder

Code Review | Simple Custom Content Adder

WordPress plugin Simple Custom Content Adder scored84%from 54 tests.

About plugin

  • Plugin page: simple-custom-con...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2013
  • Latest release: Feb 28, 2013
  • Number of updates: 8
  • Update frequency: every 1.8 days
  • Top authors: DavidoffNeal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,016 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.11ms] Passed 4 tests

Server-side resources used by Simple Custom Content Adder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.14 ▼2.76
Dashboard /wp-admin3.35 ▲0.0146.50 ▼13.76
Posts /wp-admin/edit.php3.40 ▲0.0545.12 ▼4.99
Add New Post /wp-admin/post-new.php5.95 ▲0.0783.18 ▼6.94
Media Library /wp-admin/upload.php3.28 ▲0.0534.34 ▲1.02
Custom Content /wp-admin/plugins.php?page=simple-custom-content-adder3.3137.85

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 16 new options
New WordPress options
scca_rounded_corners
scca_font_color
theysaidso_admin_options
scca_font_size
scca_border_width
scca_posts_or_pages
scca_background_color
scca_before_or_after
scca_border_color
scca_content
...

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Custom Content Adder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.43 ▲0.361.86 ▲0.2343.67 ▲2.51
Dashboard /wp-admin2,215 ▲465.69 ▲0.0485.77 ▼12.7137.96 ▼7.46
Posts /wp-admin/edit.php2,128 ▲282.27 ▲0.3234.44 ▼5.8730.69 ▼6.21
Add New Post /wp-admin/post-new.php1,543 ▲1723.28 ▲0.09699.85 ▲16.0238.41 ▼14.39
Media Library /wp-admin/upload.php1,423 ▲234.40 ▲0.20107.03 ▲7.7847.25 ▲2.75
Custom Content /wp-admin/plugins.php?page=simple-custom-content-adder1,9737.23172.35100.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 16 options in the database
    • scca_before_or_after
    • can_compress_scripts
    • scca_padding
    • scca_font_color
    • scca_background_color
    • widget_theysaidso_widget
    • scca_rounded_corners
    • scca_font_size
    • scca_content
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-custom-content-adder/simple-custom-content-adder.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: simple custom content, disclaimer, custom content, promotions, content adder

simple-custom-content-adder/simple-custom-content-adder.php Passed 13 tests

The principal PHP file in "Simple Custom Content Adder" v. 1.1 is loaded by WordPress automatically on each request
94 characters long description:
A simple plugin that enables you to add some custom content to all of your posts and/or pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected237 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16771216
JavaScript14021

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/scca.png4.32KB1.07KB▼ 75.25%
screenshot-1.png103.25KB37.33KB▼ 63.84%