73% printapp

Code Review | Print.App

WordPress plugin Print.App scored73%from 54 tests.

About plugin

  • Plugin page: printapp
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Aug 24, 2023
  • Number of updates: 25
  • Update frequency: every 6.7 days
  • Top authors: printapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,115 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.51ms] Passed 4 tests

An overview of server-side resources used by Print.App
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2238.20 ▼5.07
Dashboard /wp-admin3.41 ▲0.1042.32 ▼5.85
Posts /wp-admin/edit.php3.52 ▲0.1645.80 ▼0.39
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.93 ▲8.32
Media Library /wp-admin/upload.php3.33 ▲0.1035.01 ▲1.26

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_print_app_projects
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Print.App
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.08 ▼0.271.61 ▼0.1139.82 ▼4.23
Dashboard /wp-admin2,217 ▲365.64 ▼0.0979.62 ▼29.9867.52 ▲18.55
Posts /wp-admin/edit.php2,125 ▲251.98 ▼0.0138.16 ▲2.1934.83 ▼0.31
Add New Post /wp-admin/post-new.php1,550 ▲1923.32 ▲0.17654.34 ▼22.3555.34 ▼12.72
Media Library /wp-admin/upload.php1,425 ▲254.21 ▼0.0393.81 ▼3.1165.23 ▲18.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_print_app_projects
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/printapp/printapp.php on line 20
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/printapp/printapp.php on line 20
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/printapp/printapp.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === printapp === )
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

printapp/printapp.php 92% from 13 tests

The main PHP file in "Print.App" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)

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 plugin355 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15453302
JavaScript17129
Markdown111018
CSS1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin