84% include-me

Code Review | Include Me

WordPress plugin Include Me scored84%from 54 tests.

About plugin

  • Plugin page: include-me
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Apr 27, 2010
  • Latest release: Oct 31, 2023
  • Number of updates: 40
  • Update frequency: every 123.5 days
  • Top authors: satollo (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

6,000+ active /75,716 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.16ms] Passed 4 tests

This is a short check of server-side resources used by Include Me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.13 ▼4.63
Dashboard /wp-admin3.31 ▼0.0446.65 ▼17.89
Posts /wp-admin/edit.php3.36 ▲0.0044.90 ▼2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.29 ▼15.90
Media Library /wp-admin/upload.php3.23 ▲0.0035.77 ▼1.69
Include Me /wp-admin/options-general.php?page=include-me/admin/options.php3.2431.69

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Include Me
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.23 ▼0.121.91 ▲0.1439.07 ▲1.80
Dashboard /wp-admin2,196 ▲185.62 ▼0.0290.56 ▼14.7939.81 ▲0.42
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0739.84 ▲4.3435.20 ▲4.58
Add New Post /wp-admin/post-new.php1,540 ▲1418.56 ▼4.93615.13 ▼81.6275.34 ▲7.40
Media Library /wp-admin/upload.php1,401 ▲14.16 ▼0.0496.24 ▼9.2442.55 ▼5.11
Include Me /wp-admin/options-general.php?page=include-me/admin/options.php9042.0424.4931.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/include-me/admin/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/include-me/admin/options.php:18
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/include-me/plugin.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/include-me/plugin.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
5 plugin tags: php, iframe, php execute, external page, include

include-me/plugin.php 92% from 13 tests

The principal PHP file in "Include Me" v. 1.3.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("include-me.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin191 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33114185
CSS1006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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 functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.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