84% intro-wrapper

Code Review | Intro Wrapper

WordPress plugin Intro Wrapper scored84%from 54 tests.

About plugin

  • Plugin page: intro-wrapper
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.9
  • WordPress version: 6.3.1
  • First release: Feb 17, 2013
  • Latest release: Nov 17, 2017
  • Number of updates: 6
  • Update frequency: every 289.0 days
  • Top authors: bjornjohansen (66.67%)deployer (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,319 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Intro Wrapper
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.21 ▼5.74
Dashboard /wp-admin3.31 ▲0.0140.05 ▼6.71
Posts /wp-admin/edit.php3.36 ▲0.0046.05 ▼0.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.76 ▼19.73
Media Library /wp-admin/upload.php3.23 ▲0.0034.65 ▲1.34

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

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

Browser metrics Passed 4 tests

Intro Wrapper: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.081.57 ▼0.2337.25 ▼3.56
Dashboard /wp-admin2,206 ▲144.81 ▼0.16112.68 ▼6.7643.13 ▲1.83
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0541.20 ▲0.2337.47 ▲1.11
Add New Post /wp-admin/post-new.php1,542 ▲918.65 ▼4.48641.60 ▼33.2449.84 ▼8.21
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.0695.38 ▼6.4042.72 ▲1.39

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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/intro-wrapper/intro-wrapper.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
5 plugin tags: intro, styling, wrapper, css, styles

intro-wrapper/intro-wrapper.php Passed 13 tests

The main PHP file in "Intro Wrapper" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Wraps your intro text in a DIV element with the class "intro"

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152120

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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
No PNG files were detected