Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.91ms] Passed 4 tests
This is a short check of server-side resources used by Fan Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.00 ▼3.73 |
Dashboard /wp-admin | 3.39 ▲0.04 | 43.96 ▼11.93 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 47.24 ▲2.54 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.28 ▼10.52 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.03 ▲8.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_fanpage_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Fan Page
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.24 ▼1.44 | 1.53 ▼0.15 | 37.32 ▼5.44 |
Dashboard /wp-admin | 2,211 ▲23 | 5.81 ▲0.93 | 99.34 ▼14.18 | 39.79 ▲0.17 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.02 ▲0.02 | 42.38 ▲2.99 | 37.73 ▲2.38 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.28 ▲0.01 | 685.47 ▲5.20 | 41.24 ▼13.28 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.23 ▲0.02 | 99.00 ▼12.50 | 40.63 ▼8.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_fanpage_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fan-page/fan-page.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: show_facepile in wp-content/plugins/fan-page/views/view-fan-page.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fan-page/views/view-menu.php:6
- > PHP Notice
Undefined variable: small_header in wp-content/plugins/fan-page/views/view-fan-page.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fan-page/base/FanPageWidget.php:19
- > PHP Notice
Undefined variable: messages in wp-content/plugins/fan-page/views/view-fan-page.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/fan-page/views/view-fan-page.php:11
- > PHP Notice
Undefined variable: timeline in wp-content/plugins/fan-page/views/view-fan-page.php on line 6
- > PHP Notice
Undefined variable: events in wp-content/plugins/fan-page/views/view-fan-page.php on line 7
- > PHP Notice
Undefined variable: hide_cover in wp-content/plugins/fan-page/views/view-fan-page.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
fan-page/fan-page.php 92% from 13 tests
"Fan Page" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin490 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 141 | 179 | 439 |
CSS | 1 | 0 | 0 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 2 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/help_icon.png | 0.75KB | 0.79KB | 0.00% |