Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/paperlit/pages/themes.php+379
mkdir(): File exists
Server metrics [RAM: ▼1.82MB] [CPU: ▼45.33ms] Passed 4 tests
Analyzing server-side resources used by Paperlit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 48.76 ▲12.70 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.32 ▼37.52 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 5.97 ▼37.23 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 5.75 ▼77.55 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 7.03 ▼29.02 |
Settings /wp-admin/admin.php?page=paperlit | 2.12 | 5.98 |
Add-ons /wp-admin/admin.php?page=paperlit-addons | 2.12 | 6.42 |
Exporter logs /wp-admin/admin.php?page=paperlit-logs | 2.12 | 6.03 |
All custom html /wp-admin/edit.php?post_type=paperlit_custom_html | 2.12 | 6.65 |
Add New /wp-admin/post-new.php?post_type=paperlit_custom_html | 2.12 | 5.98 |
Add New /wp-admin/post-new.php?post_type=paperlit_ad_bundle | 2.12 | 6.58 |
All issues /wp-admin/edit.php?post_type=paperlit_edition | 2.12 | 5.90 |
Connection Types /wp-admin/tools.php?page=connection-types | 2.12 | 6.48 |
Editorial project /wp-admin/edit-tags.php?taxonomy=paperlit_editorial_project&post_type=paperlit_edition | 2.13 | 5.91 |
All Ad Bundles /wp-admin/edit.php?post_type=paperlit_ad_bundle | 2.12 | 11.44 |
Server storage [IO: ▲1.23MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 231 new files
Database: 7 new tables, 13 new options
New tables |
---|
wp_p2pmeta |
wp_paperlit_logs |
wp_paperlit_purchased_issues |
wp_paperlit_statistics |
wp_paperlit_receipts |
wp_p2p |
wp_paperlit_auth_tokens |
New WordPress options |
---|
paperlit_themes |
widget_theysaidso_widget |
widget_recent-comments |
p2p_storage |
db_upgraded |
widget_recent-posts |
widget_p2p |
paperlit_settings |
_paperlit_table_db_version |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Paperlit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲274 | 14.31 ▼0.11 | 4.95 ▲3.36 | 42.91 ▼4.67 |
Dashboard /wp-admin | 2,439 ▲251 | 6.42 ▲1.54 | 137.65 ▲31.93 | 74.37 ▲31.09 |
Posts /wp-admin/edit.php | 2,277 ▲188 | 2.25 ▲0.26 | 42.66 ▲7.13 | 36.82 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6,562 ▲5,034 | 19.74 ▼3.37 | 934.36 ▲258.75 | 42.41 ▼14.34 |
Media Library /wp-admin/upload.php | 1,562 ▲171 | 4.45 ▲0.28 | 102.25 ▲2.68 | 46.88 ▲1.49 |
Settings /wp-admin/admin.php?page=paperlit | 1,037 | 1.94 | 28.18 | 26.62 |
Add-ons /wp-admin/admin.php?page=paperlit-addons | 947 | 1.80 | 29.39 | 32.25 |
Exporter logs /wp-admin/admin.php?page=paperlit-logs | 1,855 | 3.22 | 55.43 | 36.68 |
All custom html /wp-admin/edit.php?post_type=paperlit_custom_html | 1,228 | 2.07 | 35.49 | 33.25 |
Add New /wp-admin/post-new.php?post_type=paperlit_custom_html | 1,804 | 4.03 | 69.01 | 37.38 |
Add New /wp-admin/post-new.php?post_type=paperlit_ad_bundle | 1,802 | 4.06 | 63.75 | 33.34 |
All issues /wp-admin/edit.php?post_type=paperlit_edition | 1,263 | 2.05 | 34.14 | 31.37 |
Connection Types /wp-admin/tools.php?page=connection-types | 962 | 1.91 | 26.35 | 30.40 |
Editorial project /wp-admin/edit-tags.php?taxonomy=paperlit_editorial_project&post_type=paperlit_edition | 1,387 | 1.95 | 32.40 | 29.38 |
All Ad Bundles /wp-admin/edit.php?post_type=paperlit_ad_bundle | 1,231 | 2.07 | 35.23 | 32.22 |
Uninstaller [IO: ▲0.51MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function convert_to_screen(), add_meta_box() was called incorrectly. Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie tables were found after uninstall: 7 tables
- wp_paperlit_receipts
- wp_p2pmeta
- wp_p2p
- wp_paperlit_auth_tokens
- wp_paperlit_purchased_issues
- wp_paperlit_statistics
- wp_paperlit_logs
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- paperlit_themes
- widget_recent-comments
- widget_p2p
- _paperlit_table_db_version
- p2p_storage
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 26 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=paperlit_ad_bundle
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function convert_to_screen(), add_meta_box() was called incorrectly. Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=paperlit_ad_bundle
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/tools.php?page=connection-types
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=connection-types
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 73× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant PAPERLIT_PACKAGER_CONNECTORS_PATH - assumed 'PAPERLIT_PACKAGER_CONNECTORS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paperlit/packager/exporters/webcore/index.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/paperlit/pages/logs.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/paperlit/libs/P2P/command.php:3
- > PHP Fatal error
Uncaught Error: Class 'P2P_Item_Post' not found in wp-content/plugins/paperlit/libs/P2P/core/item-attachment.php:3
- > PHP Fatal error
Uncaught Error: Class 'P2P_Indeterminate_Connection_Type' not found in wp-content/plugins/paperlit/libs/P2P/core/reciprocal-connection-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/paperlit/libs/PAPERLIT/logs.php:10
- > PHP Fatal error
Uncaught Error: Class 'P2P_Column' not found in wp-content/plugins/paperlit/libs/P2P/admin/column-post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function set_site_transient() in wp-content/plugins/paperlit/libs/EDD/EDD_SL_Plugin_Updater.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paperlit/define.php:7
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/paperlit/libs/P2P/admin/tools-page.php:3
- > PHP Warning
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/post-new.php?post_type=paperlit_ad_bundle
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/paperlit/assets//js/paperlit.metabox.js?ver=1.0:264:45)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=paperlit_ad_bundle
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== paperlit ===
) - Tags: You are using too many tags: 24 tag instead of maximum 10
- Requires at least: Version format is invalid
paperlit/paperlit.php Passed 13 tests
The main PHP file in "Paperlit" ver. 0.9.97 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
Paperlit turns Wordpress into a multi channel publishing environment.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin17,010 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 3,471 | 4,008 | 12,221 |
JavaScript | 31 | 313 | 272 | 1,974 |
CSS | 15 | 197 | 145 | 1,389 |
PO File | 16 | 500 | 631 | 1,195 |
HTML | 11 | 7 | 0 | 107 |
Markdown | 2 | 45 | 0 | 90 |
JSON | 1 | 0 | 0 | 22 |
SVG | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 109 | |
▷ Abstract classes | 13 | 11.93% |
▷ Concrete classes | 96 | 88.07% |
▷ Final classes | 7 | 7.29% |
Methods | 924 | |
▷ Static methods | 185 | 20.02% |
▷ Public methods | 737 | 79.76% |
▷ Protected methods | 141 | 15.26% |
▷ Private methods | 46 | 4.98% |
Functions | 66 | |
▷ Named functions | 64 | 96.97% |
▷ Anonymous functions | 2 | 3.03% |
Constants | 69 | |
▷ Global constants | 53 | 76.81% |
▷ Class constants | 16 | 23.19% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo-ppl.png | 20.94KB | 8.23KB | ▼ 60.69% |
libs/P2P/admin/images/minus.png | 0.10KB | 0.11KB | 0.00% |
PP-github.png | 23.82KB | 9.02KB | ▼ 62.15% |
assets/img/send.png | 0.57KB | 0.78KB | 0.00% |
logo.png | 21.66KB | 8.30KB | ▼ 61.68% |