79% pluginception

Code Review | Pluginception

WordPress plugin Pluginception scored79%from 54 tests.

About plugin

  • Plugin page: pluginception
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2012
  • Latest release: Jan 9, 2023
  • Number of updates: 32
  • Update frequency: every 120.9 days
  • Top authors: Otto42 (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

4,000+ active /50,440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Pluginception
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.65 ▼3.96
Dashboard /wp-admin3.31 ▲0.0146.32 ▼4.22
Posts /wp-admin/edit.php3.36 ▲0.0050.13 ▲5.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.56 ▼6.45
Media Library /wp-admin/upload.php3.23 ▲0.0031.39 ▼5.17
Create a New Plugin /wp-admin/plugins.php?page=pluginception3.1830.40

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Pluginception
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.571.74 ▼0.3441.47 ▼6.15
Dashboard /wp-admin2,210 ▲194.87 ▼1.03108.18 ▲5.1743.33 ▲8.30
Posts /wp-admin/edit.php2,096 ▲42.00 ▼0.0239.53 ▼2.1735.64 ▼2.48
Add New Post /wp-admin/post-new.php1,540 ▼223.40 ▲5.34642.35 ▲24.5858.41 ▲13.89
Media Library /wp-admin/upload.php1,392 ▲14.19 ▲0.01100.94 ▼2.1944.30 ▲3.34
Create a New Plugin /wp-admin/plugins.php?page=pluginception8452.0325.1626.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/plugins.php?page=pluginception
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/plugins.php?page=pluginception
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pluginception/pluginception.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: create, plugin, new

pluginception/pluginception.php Passed 13 tests

The principal PHP file in "Pluginception" v. 1.3 is loaded by WordPress automatically on each request
48 characters long description:
A plugin to create other plugins. Pluginception.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin107 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13542107

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin