79% ima-plugdev

Code Review | I'm A Plugin Developer

WordPress plugin I'm A Plugin Developer scored 79% from 54 tests.

About plugin

  • Plugin page: ima-plugdev
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Jan 24, 2017
  • Latest release: Sep 20, 2021
  • Number of updates: 15
  • Update frequency: every 113.3 days
  • Top authors: diddledan (86.67%)diddledani (20%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.40ms] Passed 4 tests

Server-side resources used by I'm A Plugin Developer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.84 ▼7.37
Dashboard /wp-admin3.38 ▲0.0845.33 ▼4.04
Posts /wp-admin/edit.php3.49 ▲0.1450.52 ▼8.06
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.11 ▼10.12
Media Library /wp-admin/upload.php3.30 ▲0.0837.64 ▲4.85
Add New /wp-admin/post-new.php?post_type=my-plugin3.2335.14
All My Plugins /wp-admin/edit.php?post_type=my-plugin3.3540.43

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

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

Browser metrics Passed 4 tests

I'm A Plugin Developer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.24 ▼1.414.66 ▲2.7343.26 ▼2.71
Dashboard /wp-admin2,230 ▲455.90 ▲0.05109.20 ▼7.6139.19 ▼10.88
Posts /wp-admin/edit.php2,116 ▲272.06 ▲0.0841.99 ▲6.3734.86 ▼2.18
Add New Post /wp-admin/post-new.php1,556 ▲4223.13 ▲5.67656.22 ▲3.5769.74 ▲14.88
Media Library /wp-admin/upload.php1,418 ▲274.31 ▲0.0596.32 ▼7.1340.19 ▼4.51
Add New /wp-admin/post-new.php?post_type=my-plugin1,4742.5550.3055.60
All My Plugins /wp-admin/edit.php?post_type=my-plugin1,0891.9431.0732.58

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=my-plugin
    • > Notice in wp-content/plugins/ima-plugdev/functions/plugin-post-meta.php+36
    Undefined index: _ima_plugdev_nonce

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ima_plugdev_add_posttype() in wp-content/plugins/ima-plugdev/activate/post-type.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ima-plugdev/functions/plugin-post-meta.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_ima_plugdev_plugin_logo() in wp-content/plugins/ima-plugdev/templates/excerpt-my-plugin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ima-plugdev/functions/post-type.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_ima_plugdev_plugin_banner() in wp-content/plugins/ima-plugdev/templates/content-my-plugin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ima-plugdev/ima-plugdev.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ima-plugdev/partials/plugin-content.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: plugin, wordpressorg, repository

ima-plugdev/ima-plugdev.php Passed 13 tests

The primary PHP file in "I'm A Plugin Developer" version 2.2.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
Showcase the plugins you have in the WordPress.org Plugin Directory

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 plugin348 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP83514332
CSS10016

PHP code Passed 2 tests

A brief analysis 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.32
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin