84% detailed-content-marketing

Code Review | Content Marketing for Wordpress by Detailed

WordPress plugin Content Marketing for Wordpress by Detailed scored84%from 54 tests.

About plugin

  • Plugin page: detailed-content-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 13, 2018
  • Latest release: Apr 26, 2018
  • Number of updates: 8
  • Update frequency: every 3.4 days
  • Top authors: detaileddotcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /657 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: ▼1.93ms] Passed 4 tests

A check of server-side resources used by Content Marketing for Wordpress by Detailed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.44 ▲0.66
Dashboard /wp-admin3.31 ▲0.0154.83 ▼0.80
Posts /wp-admin/edit.php3.36 ▲0.0053.32 ▲6.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.38 ▼10.42
Media Library /wp-admin/upload.php3.23 ▲0.0039.01 ▲2.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Content Marketing for Wordpress by Detailed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.132.13 ▲0.3343.85 ▲0.93
Dashboard /wp-admin2,189 ▲155.64 ▲0.0798.31 ▲12.9343.78 ▲2.23
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0537.11 ▼0.8132.77 ▼3.16
Add New Post /wp-admin/post-new.php1,554 ▲2820.96 ▲3.39744.41 ▲16.3553.35 ▼17.10
Media Library /wp-admin/upload.php1,403 ▲94.21 ▼0.00101.32 ▲2.2741.72 ▼0.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/detailed-content-marketing/detailed-content-marketing.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: content marketing

detailed-content-marketing/detailed-content-marketing.php 92% from 13 tests

The main PHP file in "Content Marketing for Wordpress by Detailed" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17832116

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin