Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.57ms] Passed 4 tests
A check of server-side resources used by NC2WP Bookmarks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 46.43 ▲1.13 |
Dashboard /wp-admin | 3.45 ▲0.15 | 53.97 ▲0.43 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.30 ▼4.62 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.24 ▼3.20 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 42.99 ▲5.58 |
NC2WP Bookmarks /wp-admin/options-general.php?page=oc2wp-bookmarks/nc2wp-bookmarks.php | 3.32 | 35.10 |
Server storage [IO: ▲1.42MB] [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: 13 new files
Database: no new tables, 25 new options
New WordPress options |
---|
nc2wpbm_table_description_label |
nc2wpbm_dbversion |
nc2wpbm_sql_database |
db_upgraded |
can_compress_scripts |
nc2wpbm_op_type |
widget_recent-comments |
nc2wpbm_table_description_display |
widget_recent-posts |
nc2wpbm_table_title_label |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NC2WP Bookmarks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.24 | 2.03 ▼0.02 | 44.52 ▼1.60 |
Dashboard /wp-admin | 2,196 ▲19 | 5.55 ▼0.03 | 101.78 ▼5.05 | 44.92 ▲0.57 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.04 | 41.39 ▲2.93 | 40.02 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.29 ▼0.13 | 688.53 ▼4.08 | 57.17 ▲9.27 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.05 | 101.82 ▼37.78 | 44.50 ▼8.53 |
NC2WP Bookmarks /wp-admin/options-general.php?page=oc2wp-bookmarks/nc2wp-bookmarks.php | 1,185 | 2.16 | 24.76 | 28.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_nc2wpbm_list_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=oc2wp-bookmarks/nc2wp-bookmarks.php
- > Notice in wp-content/plugins/oc2wp-bookmarks/nc2wp-bookmarks.php+351
Undefined offset: 1
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/oc2wp-bookmarks/nc2wp-bookmarks.php:35
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oc2wp-bookmarks/widget.inc.php:2
- > 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 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== oc2wp-bookmarks ===
) - Screenshots: These screenshots require images: #1 (nc2wp Settings), #2 (Nextcloud Plugin), #3 (Resulting Table enhanded by TablePress), #4 (Widget configuration), #5 (Widget with description of the Bookmarks as mouseover text)
oc2wp-bookmarks/nc2wp-bookmarks.php 92% from 13 tests
The main file in "NC2WP Bookmarks" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("oc2wp-bookmarks.php" instead of "nc2wp-bookmarks.php")
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 plugin653 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 130 | 75 | 653 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 1.38MB with 0.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 13.83KB | 5.67KB | ▼ 59.02% |
assets/banner-1544x500.png | 190.26KB | 78.27KB | ▼ 58.86% |
assets/banner-772x250.png | 56.76KB | 24.66KB | ▼ 56.56% |
assets/5_oc2wp-widget-example.png | 485.93KB | 140.13KB | ▼ 71.16% |
assets/2_oc2wp_OCapp.png | 117.22KB | 48.81KB | ▼ 58.36% |