78% issuupress

Code Review | issuuPress

WordPress plugin issuuPress scored78%from 54 tests.

About plugin

  • Plugin page: issuupress
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.4
  • WordPress version: 6.3.1
  • First release: May 18, 2012
  • Latest release: Dec 31, 2015
  • Number of updates: 34
  • Update frequency: every 38.9 days
  • Top authors: pixeline (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /18,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.27ms] Passed 4 tests

This is a short check of server-side resources used by issuuPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.54 ▼2.27
Dashboard /wp-admin3.40 ▲0.0949.80 ▼0.03
Posts /wp-admin/edit.php3.51 ▲0.1543.13 ▼5.58
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.79 ▼9.20
Media Library /wp-admin/upload.php3.32 ▲0.0936.59 ▲1.57

Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for issuuPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.35 ▼0.012.06 ▲0.4145.93 ▲6.71
Dashboard /wp-admin2,202 ▲285.62 ▲0.0592.49 ▲2.1343.48 ▲4.37
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0136.07 ▲0.7635.67 ▼0.13
Add New Post /wp-admin/post-new.php1,532 ▼323.41 ▲5.25592.57 ▼4.1145.93 ▼22.29
Media Library /wp-admin/upload.php1,404 ▲14.19 ▲0.0494.89 ▼9.0042.76 ▼2.11
issuuPress /wp-admin/issuupress.php260.420.0813.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/issuupress/issuupress.php:49

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/issuupress.php
    • > Network (severe)
    wp-admin/issuupress.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Mockup of the Issuu viewer with the list of pdfs underneath, fetched via the Issuu API.), #2 (The Settings screen.)
You can look at the official readme.txt

issuupress/issuupress.php Passed 13 tests

The primary PHP file in "issuuPress" version 1.3.2 is used by WordPress to initiate all plugin functionality
89 characters long description:
Displays your Issuu catalog of PDF files in your wordpress posts/pages using a shortcode.

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 detected532 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP212683510
CSS11022

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 code0.29
Average class complexity33.00
▷ Minimum class complexity17.00
▷ Maximum class complexity49.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.12KB15.48KB▼ 63.25%
screenshot-2.png119.93KB75.18KB▼ 37.31%