90% codec-sponsored-content

Code Review | CODEC Sponsored Content

WordPress plugin CODEC Sponsored Content scored90%from 54 tests.

About plugin

  • Plugin page: codec-sponsored-c...
  • Plugin version: 2.1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 31, 2018
  • Latest release: Nov 9, 2023
  • Number of updates: 58
  • Update frequency: every 33.2 days
  • Top authors: codecprime (98.28%)Otto42 (3.45%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,990 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.22ms] Passed 4 tests

Server-side resources used by CODEC Sponsored Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.95 ▼4.11
Dashboard /wp-admin3.32 ▲0.0244.11 ▼5.93
Posts /wp-admin/edit.php3.37 ▲0.0245.17 ▲0.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.65 ▲1.14
Media Library /wp-admin/upload.php3.25 ▲0.0235.75 ▲1.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CODEC Sponsored Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4214.25 ▼0.101.71 ▲0.0142.66 ▼2.01
Dashboard /wp-admin2,209 ▲325.52 ▼0.0684.97 ▼14.9476.71 ▲32.27
Posts /wp-admin/edit.php2,128 ▲282.00 ▼0.0140.13 ▲4.0234.68 ▼0.69
Add New Post /wp-admin/post-new.php1,553 ▲2723.12 ▼0.23606.85 ▼100.74161.18 ▲105.59
Media Library /wp-admin/upload.php1,414 ▲144.15 ▼0.0395.63 ▼13.4972.57 ▲28.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

codec-sponsored-content/codec-sponsored-content.php Passed 13 tests

"CODEC Sponsored Content" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
139 characters long description:
Premium monetizing system for quality blogs & publications. Generate revenue by displaying a widget with manually approved branded content.

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
There were no executable files found in this plugin844 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
3 compressed PNG files occupy 0.08MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/codec-logo-small.png1.09KB0.75KB▼ 31.18%
images/mon.png0.87KB0.84KB▼ 3.04%