10% printess-editor

Code Review | Printess Editor

WordPress plugin Printess Editor scored10%from 54 tests.

About plugin

  • Plugin page: printess-editor
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-8.2.1
  • WordPress version: 6.3.1
  • First release: Feb 17, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 36
  • Update frequency: every 8.4 days
  • Top authors: printess (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /919 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Error in wp-content/plugins/printess-editor/printess.php+4832
    Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/printess-editor/printess.php:4832
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.43ms] Passed 4 tests

An overview of server-side resources used by Printess Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.17 ▲3.03
Dashboard /wp-admin3.31 ▼0.0444.83 ▼16.75
Posts /wp-admin/edit.php3.36 ▲0.0048.30 ▼1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.45 ▼3.71
Media Library /wp-admin/upload.php3.24 ▲0.0034.54 ▲0.57

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Printess Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.57 ▲0.291.84 ▲0.2544.78 ▲4.19
Dashboard /wp-admin2,198 ▲215.58 ▼0.0594.26 ▼1.3540.85 ▼3.13
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0138.47 ▼1.4135.01 ▼1.85
Add New Post /wp-admin/post-new.php1,526 ▼1023.23 ▲0.16677.69 ▲33.8366.56 ▲19.44
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.1093.78 ▼7.0939.25 ▼5.08

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/printess-editor/printess.php:20
    • > PHP Parse error
      syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/printess-editor/includes/printess-tools.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt is a good inspiration

printess-editor/printess.php 85% from 13 tests

The main PHP script in "Printess Editor" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("printess-editor.php" instead of "printess.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "5.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,869 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39065623,745
PO File15254124

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity18.50
▷ Minimum class complexity3.00
▷ Maximum class complexity34.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions106
▷ Named functions10094.34%
▷ Anonymous functions65.66%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png2.91KB0.80KB▼ 72.35%
images/base.png85.39KB35.03KB▼ 58.98%