84% itm-simple

Code Review | Itm Simple Hide

WordPress plugin Itm Simple Hide scored84%from 54 tests.

About plugin

  • Plugin page: itm-simple
  • Plugin version: 3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Feb 1, 2013
  • Latest release: May 11, 2022
  • Number of updates: 19
  • Update frequency: every 178.4 days
  • Top authors: capbussat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.43ms] Passed 4 tests

An overview of server-side resources used by Itm Simple Hide
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.18 ▼0.32
Dashboard /wp-admin3.31 ▲0.0147.60 ▼7.15
Posts /wp-admin/edit.php3.36 ▲0.0046.19 ▼4.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.89 ▼9.34
Media Library /wp-admin/upload.php3.23 ▲0.0037.12 ▲1.26

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Itm Simple Hide
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲11113.43 ▼1.218.96 ▲7.1943.22 ▲2.23
Dashboard /wp-admin2,195 ▲155.62 ▲0.0190.72 ▲1.7839.35 ▼2.89
Posts /wp-admin/edit.php2,097 ▼01.99 ▼0.0434.67 ▼1.8835.18 ▼1.80
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.48670.56 ▼10.8557.94 ▲3.02
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.0196.67 ▼32.5944.82 ▼13.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 add_action() in wp-content/plugins/itm-simple/itm-simple.php:42

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2 in itm-simple/assets to your readme.txt
The official readme.txt might help

itm-simple/itm-simple.php Passed 13 tests

The main file in "Itm Simple Hide" v. 3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
A simple plugin that uses jQuery to hide parts of text

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
Success! There were no dangerous files found in this plugin187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1140119
HTML13029
JavaScript17425
PHP183114

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin