84% content-ignite

Code Review | Content Ignite

WordPress plugin Content Ignite scored84%from 54 tests.

About plugin

  • Plugin page: content-ignite
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2022
  • Latest release: Nov 20, 2023
  • Number of updates: 4
  • Update frequency: every 144.3 days
  • Top authors: contentignite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼23.16ms] Passed 4 tests

An overview of server-side resources used by Content Ignite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0240.00 ▼24.54
Dashboard /wp-admin3.32 ▼0.0249.91 ▼44.13
Posts /wp-admin/edit.php3.38 ▼0.4749.73 ▼6.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.62 ▼17.42
Media Library /wp-admin/upload.php3.25 ▲0.0232.94 ▲0.15

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Content Ignite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9314.36 ▲0.262.16 ▲0.4344.99 ▼1.77
Dashboard /wp-admin2,228 ▲485.59 ▲0.0590.89 ▼0.2039.60 ▼3.41
Posts /wp-admin/edit.php2,130 ▲271.98 ▲0.0135.63 ▼4.9132.19 ▼4.62
Add New Post /wp-admin/post-new.php1,540 ▲1423.22 ▲0.45675.50 ▲45.6657.21 ▲6.52
Media Library /wp-admin/upload.php1,433 ▲334.27 ▲0.0897.70 ▲0.5341.50 ▼0.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/content-ignite/admin/partials/content-ignite-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: content ignite, publisher, ads, google ads, advertising...

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

Analyzing the main PHP file in "Content Ignite" version 1.1.0
72 characters long description:
Add your Content Ignite publisher tag to your site in just a few clicks.

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
No dangerous file extensions were detected358 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11123508246
CSS184108
JavaScript12273
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/find_my_uid.png48.55KB18.31KB▼ 62.28%