84% minepic

Code Review | Minepic

WordPress plugin Minepic scored84%from 54 tests.

About plugin

  • Plugin page: minepic
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2013
  • Latest release: Feb 7, 2014
  • Number of updates: 6
  • Update frequency: every 37.7 days
  • Top authors: RaynLegends (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,380 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.01MB] [CPU: ▼9.20ms] Passed 4 tests

Analyzing server-side resources used by Minepic
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.36 ▼6.48
Dashboard /wp-admin3.31 ▲0.0145.92 ▼1.89
Posts /wp-admin/edit.php3.36 ▲0.0145.04 ▼0.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.35 ▼27.81
Media Library /wp-admin/upload.php3.24 ▲0.0151.28 ▲17.04

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Minepic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4413.26 ▼1.101.71 ▼0.1940.60 ▲0.28
Dashboard /wp-admin2,209 ▲215.79 ▲0.92110.40 ▼1.5577.46 ▲36.25
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0741.83 ▲0.4433.36 ▼1.49
Add New Post /wp-admin/post-new.php1,532 ▲1223.25 ▲0.13780.21 ▲147.0852.43 ▼1.60
Media Library /wp-admin/upload.php1,379 ▼94.12 ▼0.06112.19 ▲4.0587.57 ▲43.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/minepic/minepic.php:183

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Example of comments with Minepic plugin activated) image not found
You can look at the official readme.txt

minepic/minepic.php Passed 13 tests

The main PHP script in "Minepic" version 1.1 is automatically included on every request by WordPress
15 characters long description:
Skin to avatars

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1595178

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
There are no PNG files in this plugin