79% paperview-publisher

Code Review | Paperview Publisher

WordPress plugin Paperview Publisher scored79%from 54 tests.

About plugin

  • Plugin page: paperview-publisher
  • Plugin version: 0.8.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: Jul 13, 2022
  • Number of updates: 29
  • Update frequency: every 24.6 days
  • Top authors: paperview (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /933 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼4.28ms] Passed 4 tests

An overview of server-side resources used by Paperview Publisher
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.77 ▼2.62
Dashboard /wp-admin3.62 ▲0.3254.73 ▼0.30
Posts /wp-admin/edit.php3.74 ▲0.3852.96 ▲1.66
Add New Post /wp-admin/post-new.php6.24 ▲0.3690.98 ▼10.21
Media Library /wp-admin/upload.php3.54 ▲0.3236.72 ▼3.98
Status /wp-admin/admin.php?page=paperview3.55326.04
Publisher settings /wp-admin/admin.php?page=paperview_publisher__admin3.5436.86
Publication packs /wp-admin/admin.php?page=paperview_publisher__packs3.5235.28

Server storage [IO: ▲0.21MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: 4 new tables, 7 new options
New tables
wp_paperview_publisher_pack_articles
wp_paperview_publisher_publication_info
wp_paperview_publisher_articles
wp_paperview_publisher_packs
New WordPress options
can_compress_scripts
paperview_publisher__db_version
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Paperview Publisher
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9513.80 ▼0.581.90 ▼0.2644.42 ▲1.41
Dashboard /wp-admin2,262 ▲595.02 ▲0.15117.65 ▼2.8342.88 ▼1.62
Posts /wp-admin/edit.php2,157 ▲572.45 ▲0.4036.20 ▼4.5933.68 ▼3.30
Add New Post /wp-admin/post-new.php6,247 ▲4,72125.95 ▲8.47931.87 ▲231.8261.72 ▼0.31
Media Library /wp-admin/upload.php1,441 ▲414.31 ▲0.10102.23 ▼12.6043.21 ▼4.24
Status /wp-admin/admin.php?page=paperview8281.8325.0529.12
Publisher settings /wp-admin/admin.php?page=paperview_publisher__admin1,1871.8327.5639.36
Publication packs /wp-admin/admin.php?page=paperview_publisher__packs8151.7925.9728.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables were found after uninstall: 4 tables
    • wp_paperview_publisher_packs
    • wp_paperview_publisher_pack_articles
    • wp_paperview_publisher_publication_info
    • wp_paperview_publisher_articles
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • paperview_publisher__db_version
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

paperview-publisher/main.php 92% from 13 tests

This is the main PHP file of "Paperview Publisher" version 0.8.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("paperview-publisher.php" instead of "main.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
No dangerous file extensions were detected3,307 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP197734513,066
PO File193100238
CSS1001
JavaScript1001
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions103
▷ Named functions7774.76%
▷ Anonymous functions2625.24%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin