73% wp-advanced-include

Code Review | WP Advanced Include

WordPress plugin WP Advanced Include scored 73% from 54 tests.

About plugin

  • Plugin page: wp-advanced-include
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Nov 11, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: The.Missing.Code (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 4,773 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.23MB] [CPU: ▼46.43ms] Passed 4 tests

This is a short check of server-side resources used by WP Advanced Include
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7214.38 ▼29.96
Dashboard /wp-admin2.78 ▼0.5316.05 ▼33.13
Posts /wp-admin/edit.php2.78 ▼0.5815.82 ▼33.86
Add New Post /wp-admin/post-new.php2.78 ▼3.1117.24 ▼88.78
Media Library /wp-admin/upload.php2.78 ▼0.4513.07 ▼21.16

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Advanced Include
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.141.77 ▼0.2644.94 ▲0.95
Dashboard /wp-admin2,206 ▲175.85 ▲0.9997.41 ▼34.7237.71 ▼5.04
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0134.56 ▼5.6333.40 ▼2.57
Add New Post /wp-admin/post-new.php1,520 ▼1323.37 ▼0.04684.75 ▲37.3559.28 ▲8.77
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0296.54 ▼6.5642.05 ▼5.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WpAdvancedInclude::init() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-advanced-include/WpAdvancedInclude.php:121

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Invalid plugin version format
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

wp-advanced-include/WpAdvancedInclude.php 92% from 13 tests

Analyzing the main PHP file in "WP Advanced Include" version 1.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-advanced-include.php" instead of "WpAdvancedInclude.php")

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 plugin66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2164366

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin