10% mz-post-and-page-excerpts-widgets

Code Review | MZ Post and Page Excerpts Widgets

WordPress plugin MZ Post and Page Excerpts Widgets scored10%from 54 tests.

About plugin

  • Plugin page: mz-post-and-page-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Aug 6, 2013
  • Latest release: Aug 9, 2013
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: maztch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,828 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php+26
    Function create_function() is deprecated

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.30ms] Passed 4 tests

Server-side resources used by MZ Post and Page Excerpts Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.40 ▼35.85
Dashboard /wp-admin2.08 ▼1.234.93 ▼43.59
Posts /wp-admin/edit.php2.08 ▼1.285.79 ▼41.30
Add New Post /wp-admin/post-new.php2.08 ▼3.815.20 ▼88.44
Media Library /wp-admin/upload.php2.08 ▼1.155.14 ▼26.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_mz_page_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_mz_post_widget

Browser metrics Passed 4 tests

A check of browser resources used by MZ Post and Page Excerpts Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.35 ▼0.951.66 ▼0.1440.28 ▼4.69
Dashboard /wp-admin2,200 ▲124.85 ▼1.0198.85 ▼15.8740.86 ▼0.82
Posts /wp-admin/edit.php2,089 ▲31.99 ▲0.0239.55 ▲4.8936.14 ▲2.61
Add New Post /wp-admin/post-new.php1,542 ▲918.33 ▼4.93581.40 ▼76.7354.35 ▼2.04
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0395.03 ▼6.8742.74 ▼4.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php+26
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_mz_post_widget
    • widget_mz_page_widget
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-page-widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: post excerpts, page excerpts, post and page excerpts widgets

mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php 92% from 13 tests

The main PHP script in "MZ Post and Page Excerpts Widgets" version 1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin500 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36258495
CSS1105

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin