77% wp-contentools

Code Review | Contentools Integration

WordPress plugin Contentools Integration scored77%from 54 tests.

About plugin

  • Plugin page: wp-contentools
  • Plugin version: 3.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2016
  • Latest release: Jul 4, 2023
  • Number of updates: 59
  • Update frequency: every 43.0 days
  • Top authors: infracontentools (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /7,952 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲0.90ms] Passed 4 tests

This is a short check of server-side resources used by Contentools Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1749.43 ▲11.63
Dashboard /wp-admin3.50 ▲0.1961.01 ▲8.83
Posts /wp-admin/edit.php3.59 ▲0.2451.51 ▲1.67
Add New Post /wp-admin/post-new.php6.11 ▲0.2388.64 ▼15.69
Media Library /wp-admin/upload.php3.42 ▲0.1943.42 ▲8.78
Contentools /wp-admin/options-general.php?page=contentools3.3940.47

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification detected: 1 file (0.62KB) outside of "wp-content/plugins/wp-contentools/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Contentools Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.42 ▼0.938.16 ▲6.6143.25 ▲0.52
Dashboard /wp-admin2,205 ▲345.57 ▼0.1084.39 ▼16.8639.16 ▼6.03
Posts /wp-admin/edit.php2,110 ▲102.00 ▲0.0235.77 ▼24.5132.44 ▼3.72
Add New Post /wp-admin/post-new.php1,535 ▲123.08 ▲5.05677.57 ▲48.6553.72 ▼18.15
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.0198.33 ▼10.4243.38 ▼3.93
Contentools /wp-admin/options-general.php?page=contentools8342.1525.4624.09

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-contentools/public/partials/contentools-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-contentools/admin/partials/contentools-admin-display.php:18

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI found ("")
  • Screenshots: Add a description for screenshot #1 in wp-contentools/assets to your readme.txt
Please take inspiration from this readme.txt

wp-contentools/contentools.php 85% from 13 tests

"Contentools Integration" version 3.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-contentools.php" instead of "contentools.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,060 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14386715753
JavaScript339126307
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods47
▷ Static methods24.26%
▷ Public methods4187.23%
▷ Protected methods00.00%
▷ Private methods612.77%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin