Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Error in wp-content/plugins/followthis-topic-box/ft_settings.php+95
Uncaught Error: Class 'Section' not found in wp-content/plugins/followthis-topic-box/ft_settings.php:95
Stack trace:
#0 wp-content/plugins/followthis-topic-box/ft.php(5): require_once()
#1 wp-content/plugins/followthis-topic-box/followthis.php(32): require_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.66ms] Passed 4 tests
A check of server-side resources used by followthis topic box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.61 ▼3.05 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.77 ▲1.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.18 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.63 ▼4.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.21 ▼1.22 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
followthis topic box: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.62 ▼0.75 | 1.97 ▼0.30 | 43.17 ▲3.45 |
Dashboard /wp-admin | 2,209 ▲18 | 5.83 ▲0.95 | 109.48 ▲8.16 | 41.82 ▲1.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 38.81 ▼1.76 | 34.29 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 23.51 ▲0.36 | 661.81 ▲20.70 | 56.47 ▲4.49 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.07 | 98.96 ▼3.29 | 41.89 ▲1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/followthis-topic-box/wpdk.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Section' not found in wp-content/plugins/followthis-topic-box/ft_settings.php:95
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/followthis-topic-box/ft.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/followthis-topic-box/ft.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/followthis-topic-box/ft.php on line 3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
followthis-topic-box/followthis.php 85% from 13 tests
"followthis topic box" version 1.2.0'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:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("followthis-topic-box.php" instead of "followthis.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin832 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 159 | 237 | 527 |
PO File | 4 | 85 | 207 | 233 |
JavaScript | 2 | 14 | 16 | 54 |
CSS | 1 | 4 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 12 | 36.36% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.03% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ft_logo_72x72.png | 3.74KB | 1.30KB | ▼ 65.37% |
img/ft_logo_16x16.png | 0.95KB | 0.27KB | ▼ 71.49% |