Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/collapsing-pages/collapsPage.php+53
compact(): Undefined variable: selected
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.75ms] Passed 4 tests
An overview of server-side resources used by Collapsing Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.04 | 25.94 ▼14.85 |
Dashboard /wp-admin | 3.35 ▼0.00 | 43.75 ▼20.18 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.29 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.89 ▼9.97 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.01 ▲0.78 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: no new tables, 11 new options
New WordPress options |
---|
collapsPageStyle |
widget_recent-comments |
collapsPageDefaultStyles |
collapsPageVersion |
theysaidso_admin_options |
collapsPageOrigStyle |
can_compress_scripts |
collapsPageSidebarId |
widget_theysaidso_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Collapsing Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲74 | 14.22 ▼0.42 | 1.98 ▲0.31 | 36.19 ▼5.86 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.07 | 92.83 ▼5.89 | 42.00 ▼4.56 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.01 | 40.24 ▲4.19 | 37.23 ▲3.07 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,840 | 27.70 ▲4.52 | 890.99 ▲297.57 | 53.59 ▼9.04 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.15 ▼0.05 | 95.98 ▲2.64 | 41.58 ▲0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 11 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- collapsPageSidebarId
- db_upgraded
- theysaidso_admin_options
- collapsPageStyle
- collapsPageVersion
- widget_recent-posts
- collapsPageDefaultStyles
- collapsPageOrigStyle
- ...
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/2.0.1/symbols.php on line 5
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/symbols.php on line 2
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/2.0.1/symbols.php on line 2
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/symbols.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/collapsing-pages/collapsPage.php:33
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/2.0.1/symbols.php on line 8
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/2.0.1/symbols.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/collapsing-pages/2.0.1/collapsPage.php:33
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/symbols.php on line 5
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-pages/symbols.php on line 15
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (a few expanded pages with default theme, showing nested pages), #2 (a few expanded pages with default theme, showing drop down version)
collapsing-pages/collapsPage.php 92% from 13 tests
The main file in "Collapsing Pages" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("collapsing-pages.php" instead of "collapsPage.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin19,240 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 17,512 |
PHP | 8 | 85 | 127 | 1,027 |
JavaScript | 8 | 28 | 101 | 549 |
PO File | 1 | 46 | 81 | 120 |
Sass | 2 | 2 | 0 | 18 |
Bourne Again Shell | 1 | 2 | 1 | 13 |
CSS | 2 | 1 | 0 | 1 |
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 code | 0.49 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 10 | 100.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/custom.png | 3.12KB | 1.94KB | ▼ 37.83% |
screenshot-2.png | 17.23KB | 7.41KB | ▼ 56.98% |
2.0.1/img/block.png | 2.14KB | 1.59KB | ▼ 25.69% |
2.0.1/img/default.png | 2.18KB | 1.59KB | ▼ 26.95% |
img/noArrows.png | 1.68KB | 1.11KB | ▼ 33.82% |