Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
Server metrics [RAM: ▼1.97MB] [CPU: ▼56.70ms] Passed 4 tests
Analyzing server-side resources used by mybb Last Topics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.74 ▼32.48 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.49 ▼57.34 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.77 ▼44.74 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.81 ▼92.22 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.54 ▼28.68 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_mybb_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
mybb Last Topics: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.28 ▲0.01 | 1.77 ▼0.10 | 45.59 ▲0.63 |
Dashboard /wp-admin | 2,194 ▲14 | 5.52 ▼0.15 | 89.34 ▼0.23 | 82.15 ▲43.09 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.99 ▼0.01 | 35.68 ▼1.18 | 34.34 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,551 ▲16 | 23.39 ▲5.14 | 716.56 ▲78.30 | 56.04 ▼15.74 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.15 ▼0.10 | 97.13 ▼9.25 | 75.31 ▲28.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- Zombie WordPress options were found after uninstall: 7 options
- widget_mybb_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mybb-last-topics/mybblasttopics.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mybb-last-topics/panel_mybblasttopics.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mybb-last-topics/mybbwidget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Screen shot (screenshot-1.png) in Setting page), #2 (Screen shot (screenshot-2.png) in Preview), #3 (Screen shot (screenshot-3.png) in Widget)
mybb-last-topics/mybblasttopics.php 92% from 13 tests
The entry point to "mybb Last Topics" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("mybb-last-topics.php" instead of "mybblasttopics.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 plugin585 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 29 | 296 |
CSS | 2 | 0 | 0 | 224 |
PO File | 1 | 24 | 35 | 65 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-2.png | 53.24KB | 0.00KB | ▼ 100.00% |
images/topic.png | 0.59KB | 0.69KB | 0.00% |
images/bg-head.png | 0.13KB | 0.19KB | 0.00% |
screenshot-1.png | 32.11KB | 15.41KB | ▼ 52.01% |
screenshot-3.png | 47.64KB | 22.89KB | ▼ 51.95% |