84% minipress

Code Review | MiniPress

WordPress plugin MiniPress scored84%from 54 tests.

About plugin

  • Plugin page: minipress
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2012
  • Latest release: Mar 20, 2013
  • Number of updates: 6
  • Update frequency: every 23.8 days
  • Top authors: ericmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by MiniPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0129.92 ▼11.50
Dashboard /wp-admin3.31 ▼0.0343.46 ▼20.33
Posts /wp-admin/edit.php3.43 ▲0.0747.49 ▲5.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.59 ▼1.60
Media Library /wp-admin/upload.php3.24 ▲0.0135.29 ▲1.54

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options
minipress_ac315b69134ea8c517f10299e22ec356
minipress_f9dd8e64dd3f8c90af31e45f06e76397
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
minipress_c35b921c9dd5a399ea10a336baf58311

Browser metrics Passed 4 tests

MiniPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲2513.60 ▼0.992.16 ▲0.1140.55 ▼3.25
Dashboard /wp-admin2,203 ▲184.88 ▼0.9997.06 ▼10.5340.49 ▼2.29
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0340.41 ▲3.1036.11 ▲2.44
Add New Post /wp-admin/post-new.php1,528 ▲1418.20 ▲0.62607.95 ▼77.6658.93 ▲1.08
Media Library /wp-admin/upload.php1,388 ▼34.18 ▲0.00102.10 ▼6.9444.21 ▼2.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • minipress_f9dd8e64dd3f8c90af31e45f06e76397
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • minipress_c35b921c9dd5a399ea10a336baf58311
    • minipress_ac315b69134ea8c517f10299e22ec356
    • can_compress_scripts
    • widget_recent-comments
    • 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 | 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minipress/minipress.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: javascript, concatenate, minify

minipress/minipress.php Passed 13 tests

The main file in "MiniPress" v. 0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
Automatically concatenates and minifies all enqueued scripts upon pageload.

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
No dangerous file extensions were detected657 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4120350596
Markdown151061

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 code0.51
Average class complexity21.67
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity5.96
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1040.00%
▷ Public methods624.00%
▷ Protected methods1248.00%
▷ Private methods728.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
There are no PNG files in this plugin