Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.56ms] Passed 4 tests
Analyzing server-side resources used by Addon Library Layouts Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.79 ▼1.36 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.38 ▼8.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.82 ▲2.67 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.63 ▼6.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.87 ▲4.13 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Addon Library Layouts Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.31 ▼1.33 | 1.77 ▼0.02 | 43.44 ▼6.62 |
Dashboard /wp-admin | 2,222 ▲34 | 5.84 ▲0.94 | 107.46 ▼8.72 | 41.27 ▼4.64 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.05 | 38.25 ▲0.17 | 35.09 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,527 ▼10 | 17.71 ▼5.56 | 638.76 ▼2.73 | 63.65 ▲4.55 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.13 ▼0.08 | 93.75 ▼10.65 | 42.25 ▼4.82 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/addon-library-layouts/inc_php/admin.class.php
- > /wp-content/plugins/addon-library-layouts/inc_php/plugin.class.php
- > /wp-content/plugins/addon-library-layouts/inc_php/main_file.php
- > /wp-content/plugins/addon-library-layouts/inc_php/globals.class.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/addon-library-layouts/inc_php/globals.class.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/addon-library-layouts/inc_php/globals.class.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/addon-library-layouts/views/standalone.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== addon-library-layouts ===
)
addon-library-layouts/addon-library-layouts.php Passed 13 tests
Analyzing the main PHP file in "Addon Library Layouts Builder" version 1.1.3
81 characters long description:
Addon Library Layouts Builder - Create and edit layouts from addon library addons
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 plugin451 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 297 | 186 | 437 |
JavaScript | 1 | 14 | 7 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 31 | 79.49% |
▷ Public methods | 31 | 79.49% |
▷ Protected methods | 6 | 15.38% |
▷ Private methods | 2 | 5.13% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin