Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.23MB] [CPU: ▼42.01ms] Passed 4 tests
This is a short check of server-side resources used by flg
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 13.86 ▼27.87 |
Dashboard /wp-admin | 2.78 ▼0.52 | 15.77 ▼32.05 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 18.89 ▼27.24 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 17.24 ▼80.89 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 14.56 ▼18.05 |
Fetch lg /wp-admin/options-general.php?page=Createarticle | 2.78 | 15.02 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
flg: 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,831 ▲96 | 13.64 ▼0.73 | 1.73 ▼0.26 | 38.72 ▼10.22 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.79 | 106.01 ▼2.02 | 39.01 ▼9.49 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.02 | 39.69 ▲4.92 | 35.16 ▼3.93 |
Add New Post /wp-admin/post-new.php | 1,550 ▲16 | 23.30 ▲0.11 | 632.71 ▼40.83 | 48.65 ▼11.93 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.28 ▼0.02 | 91.89 ▼7.31 | 42.61 ▼4.29 |
Fetch lg /wp-admin/options-general.php?page=Createarticle | 800 | 2.02 | 21.53 | 26.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > 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.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=Createarticle
- > 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.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Createarticle
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=Createarticle
- > Notice in wp-content/plugins/fetch-lg/create_post.php+4
Undefined index: add_article
- > GET request to /wp-admin/options-general.php?page=Createarticle
- > Notice in wp-content/plugins/fetch-lg/create_post.php+54
Undefined variable: URL
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Createarticle
- > Notice in wp-content/plugins/fetch-lg/create_post.php+64
Undefined index: URL
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: add_article in wp-content/plugins/fetch-lg/create_post.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fetch-lg/index.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fetch-lg/create_post.php:48
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== fetch-lg ===
)
fetch-lg/index.php 85% from 13 tests
"flg" version 1...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
- Main file name: The principal plugin file should be the same as the plugin slug ("fetch-lg.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin252 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 11 | 8 | 184 |
PO File | 1 | 19 | 25 | 58 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin