Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.64ms] Passed 4 tests
A check of server-side resources used by Web3Press - Decentralize Publishing with Writing NFT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.36 ▼3.58 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.31 ▲0.88 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 52.23 ▲3.19 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 86.12 ▼15.04 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.91 ▲8.05 |
Plugin Setting /wp-admin/admin.php?page=likecoin | 3.27 | 34.02 |
Getting Started /wp-admin/admin.php?page=likecoin_help | 3.27 | 34.95 |
Liker ID /wp-admin/admin.php?page=likecoin_liker_id | 3.27 | 40.42 |
Server storage [IO: ▲0.66MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 146 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
lc_plugin_options |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics 75% from 4 tests
An overview of browser requirements for Web3Press - Decentralize Publishing with Writing NFT
A great user experience is important, so you should focus on the following
- Script duration: Please improve your JavaScript code, lowering total execution time to less than 1,500.00ms (currently 1,621.46ms on /wp-admin/admin.php?page=likecoin_help)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲64 | 14.35 ▲0.19 | 1.60 ▼0.51 | 39.67 ▼5.61 |
Dashboard /wp-admin | 2,241 ▲64 | 5.52 ▼0.12 | 81.25 ▼7.35 | 37.39 ▼3.74 |
Posts /wp-admin/edit.php | 2,194 ▲94 | 1.99 ▼0.02 | 40.59 ▼0.32 | 35.57 ▼0.84 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,883 | 29.97 ▲11.85 | 958.17 ▲342.82 | 44.28 ▼18.67 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.26 ▲0.05 | 98.58 ▼7.74 | 41.22 ▼4.52 |
Plugin Setting /wp-admin/admin.php?page=likecoin | 977 | 4.46 | 67.26 | 55.24 |
Getting Started /wp-admin/admin.php?page=likecoin_help | 1,881 | 28.38 | 1,621.46 | 130.10 |
Liker ID /wp-admin/admin.php?page=likecoin_liker_id | 916 | 4.22 | 58.46 | 33.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 fix the following items
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/likecoin/likecoin.php:40
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/likecoin/includes/class-likecoin-matters-api.php on line 26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likecoin_help
- > Console-api (warning) in unknown
https://www.datadoghq-browser-agent.com/datadog-rum-v4.js 0:143533 "Datadog Browser SDK:" "No storage available for session. We will not send any data."
- > GET request to /wp-admin/admin.php?page=likecoin_help
- > Security (severe) in unknown
https://substackcdn.com/bundle/channelFrame.48a6a65cf4dd6b036108.bundle.js 198 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://newsletter.like.co') does not match the recipient window's origin ('').
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: web3, depub, blockchain, decentralized, publishing...
likecoin/likecoin.php Passed 13 tests
"Web3Press - Decentralize Publishing with Writing NFT" version 3.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Publishes your posts to the blockchain. Sell your posts, share your work, build community, preserve content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9,615 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 76 | 227 | 134 | 4,355 |
PHP | 29 | 212 | 1,111 | 2,939 |
CSS | 8 | 338 | 53 | 1,995 |
JSON | 4 | 0 | 0 | 206 |
SVG | 7 | 0 | 4 | 86 |
Sass | 4 | 4 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 23.08% |
Functions | 117 | |
▷ Named functions | 103 | 88.03% |
▷ Anonymous functions | 14 | 11.97% |
Constants | 46 | |
▷ Global constants | 46 | 100.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
6 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/likecoin.png | 36.50KB | 11.21KB | ▼ 69.28% |
js/admin-settings/src/assets/w3p_logo.png | 2.53KB | 2.61KB | 0.00% |
js/admin-settings/src/assets/logo.png | 4.48KB | 2.71KB | ▼ 39.56% |
assets/js/admin-settings/images/w3p_logo.443a5708.png | 2.53KB | 2.61KB | 0.00% |
assets/js/admin-settings/images/w3p_banner.13b75e39.png | 52.81KB | 56.35KB | 0.00% |