Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼146.80ms] Passed 4 tests
Analyzing server-side resources used by MemeOne
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.10 | 30.40 ▼4.51 |
Dashboard /wp-admin | 3.16 ▲0.10 | 41.11 ▼5.15 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 46.29 ▼3.21 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 93.55 ▼574.33 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 35.41 ▲2.41 |
Backgrounds /wp-admin/admin.php?page=memeone-backgrounds | 3.11 | 31.60 |
Settings /wp-admin/admin.php?page=memeone | 3.11 | 30.01 |
Memes /wp-admin/admin.php?page=memeone-memes | 3.08 | 29.71 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_memeone_backgrounds |
wp_memeone |
New WordPress options |
---|
memeone_default_upload_path |
memeone_default_upload_url |
memeone_backgrounds_destination_folder |
memeone_display_meme_on_thank_you_page |
memeone_turn_memes_to_wp_posts |
memeone_thank_you_page |
memeone_destination_folder |
memeone_font |
memeone_top_text_font_size |
memeone_bottom_text_font_size |
... |
Browser metrics Passed 4 tests
A check of browser resources used by MemeOne
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲124 | 16.28 ▲0.64 | 10.28 ▼0.87 | 45.50 ▼7.83 |
Dashboard /wp-admin | 3,008 ▲78 | 5.85 ▼0.08 | 154.91 ▲8.23 | 114.91 ▼8.65 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.71 ▼0.01 | 94.25 ▲29.69 | 97.30 ▲9.62 |
Add New Post /wp-admin/post-new.php | 1,708 ▲25 | 16.00 ▼2.36 | 400.31 ▲7.65 | 115.32 ▲6.30 |
Media Library /wp-admin/upload.php | 1,846 ▲39 | 5.03 ▲0.01 | 160.88 ▲0.40 | 119.02 ▼4.75 |
Backgrounds /wp-admin/admin.php?page=memeone-backgrounds | 1,073 | 2.06 | 54.84 | 84.96 |
Settings /wp-admin/admin.php?page=memeone | 1,135 | 2.09 | 59.28 | 81.66 |
Memes /wp-admin/admin.php?page=memeone-memes | 894 | 1.86 | 32.99 | 63.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memeone/memeone.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/memeone/memeone-admin-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function memeone_get_memes() in wp-content/plugins/memeone/memeone-admin-memes.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/memeone/memeone-admin-backgrounds.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=memeone
- > Network (severe)
https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: memes, meme, comics, internet memes, trollface
memeone/memeone.php Passed 13 tests
Analyzing the main PHP file in "MemeOne" version 2.0.5
46 characters long description:
MemeOne is a plugin for creating memes online.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,125 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 258 | 179 | 810 |
JavaScript | 2 | 84 | 90 | 213 |
CSS | 2 | 21 | 0 | 102 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete_button.png | 0.65KB | 0.54KB | ▼ 17.01% |