68% imwptip

Code Review | imwptip

WordPress plugin imwptip scored68%from 54 tests.

About plugin

  • Plugin page: imwptip
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Mar 18, 2017
  • Latest release: Mar 21, 2017
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: hu_chao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,073 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.89MB] [CPU: ▼59.44ms] Passed 4 tests

A check of server-side resources used by imwptip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.23 ▼38.57
Dashboard /wp-admin2.11 ▼1.197.01 ▼47.86
Posts /wp-admin/edit.php2.11 ▼1.246.14 ▼51.81
Add New Post /wp-admin/post-new.php2.11 ▼3.775.79 ▼99.53
Media Library /wp-admin/upload.php2.11 ▼1.126.45 ▼31.21

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

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

Browser metrics Passed 4 tests

Checking browser requirements for imwptip
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.52 ▲0.131.75 ▼0.2945.65 ▼1.96
Dashboard /wp-admin2,239 ▲334.86 ▼1.16107.26 ▼5.6746.55 ▲3.96
Posts /wp-admin/edit.php2,118 ▲182.01 ▲0.0139.00 ▼1.6244.00 ▲5.57
Add New Post /wp-admin/post-new.php1,555 ▲1423.14 ▲5.15675.75 ▲39.8072.75 ▲16.11
Media Library /wp-admin/upload.php1,418 ▲184.25 ▲0.03111.51 ▲1.9952.71 ▲6.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the imwptip handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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 | 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/imwptip/pages/imwptip.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'IMWPBase' not found in wp-content/plugins/imwptip/classes/imwptipadmin.php:2
    • > PHP Notice
      Undefined variable: tpldata in wp-content/plugins/imwptip/pages/imwptip.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/imwptip/imwptip.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'IMWPbase' not found in wp-content/plugins/imwptip/classes/imwptip.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/imwptip/pages/imwptip.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === imwptip === )
You can look at the official readme.txt

imwptip/imwptip.php 92% from 13 tests

The main PHP file in "imwptip" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 285 characters long)

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 plugin386 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53364311
LESS16074
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.33
▷ Minimum class complexity8.00
▷ Maximum class complexity19.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods215.38%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin