84% mooberry-show-latest-posts

Code Review | Mooberry Show Latest Posts

WordPress plugin Mooberry Show Latest Posts scored84%from 54 tests.

About plugin

  • Plugin page: mooberry-show-lat...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-4.4
  • WordPress version: 6.3.1
  • First release: Mar 9, 2015
  • Latest release: Jan 6, 2016
  • Number of updates: 18
  • Update frequency: every 16.8 days
  • Top authors: mooberrydreams (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.46ms] Passed 4 tests

An overview of server-side resources used by Mooberry Show Latest Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.03 ▼4.75
Dashboard /wp-admin3.35 ▲0.0145.37 ▼15.83
Posts /wp-admin/edit.php3.47 ▲0.1147.48 ▲3.64
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.89 ▼8.91
Media Library /wp-admin/upload.php3.27 ▲0.0536.93 ▲5.45
Show Latest Posts /wp-admin/options-general.php?page=mbdslp-show-latests-posts3.2533.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mooberry Show Latest Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.25 ▼1.021.78 ▲0.2237.71 ▼4.80
Dashboard /wp-admin2,210 ▲225.90 ▲0.06111.39 ▲0.7640.13 ▼6.32
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0339.44 ▲0.6134.31 ▼3.41
Add New Post /wp-admin/post-new.php1,536 ▼923.29 ▲5.01655.54 ▲43.3156.33 ▲2.03
Media Library /wp-admin/upload.php1,395 ▲44.21 ▲0.0595.15 ▼4.3241.28 ▼1.65
Show Latest Posts /wp-admin/options-general.php?page=mbdslp-show-latests-posts8532.0623.3626.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • mbdslp_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mooberry-show-latest-posts/admin-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mooberry-show-latest-posts/admin-options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: latest posts, most recent posts, archive, static front page, front page...

mooberry-show-latest-posts/mooberry-show-latest-posts.php Passed 13 tests

The main PHP script in "Mooberry Show Latest Posts" version 1.3 is automatically included on every request by WordPress
47 characters long description:
Show latest blog posts on the static front page

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
Success! There were no dangerous files found in this plugin187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24156187

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin