Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.69ms] Passed 4 tests
A check of server-side resources used by 2MB Autocode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.46 ▼5.19 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.09 ▼6.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.18 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.39 ▼4.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 43.35 ▲9.38 |
Autocode /wp-admin/options-general.php?page=twomb-autocode-settings | 3.22 | 30.10 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 12 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
2mb_autocode_bottomtype |
2mb_autocode_topstring |
2mb_autocode_toptype |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
2mb_autocode_tophome |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for 2MB Autocode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.44 ▲0.09 | 2.33 ▲0.50 | 39.24 ▼4.81 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.02 | 94.12 ▼7.89 | 37.38 ▼6.26 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 39.64 ▲4.78 | 37.19 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6,525 ▲4,991 | 20.40 ▼2.83 | 916.22 ▲259.12 | 57.53 ▲4.59 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.26 ▲0.06 | 109.28 ▲14.69 | 48.59 ▲5.95 |
Autocode /wp-admin/options-general.php?page=twomb-autocode-settings | 885 | 1.84 | 27.11 | 31.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 12 options in the database
- widget_theysaidso_widget
- 2mb_autocode_bottomtype
- 2mb_autocode_bottomhome
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- 2mb_autocode_bottomstring
- widget_recent-comments
- widget_recent-posts
- 2mb_autocode_tophome
- ...
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/2mb-autocode/2mb-autocode.php:11
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: modify posts, preformatted text, code placement, html, php...
2mb-autocode/2mb-autocode.php Passed 13 tests
This is the main PHP file of "2MB Autocode" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
105 characters long description:
This plugin allows you to place predetermined text, php, or shortcodes at the top and/or bottom of posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected447 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 10 | 447 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
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 | 23 | |
▷ Named functions | 23 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected