63% mediacreeper

Code Review | MediaCreeper

WordPress plugin MediaCreeper scored63%from 54 tests.

About plugin

  • Plugin page: mediacreeper
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Dec 16, 2012
  • Latest release: Dec 19, 2012
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: mediacreeper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /924 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.22ms] Passed 4 tests

Analyzing server-side resources used by MediaCreeper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.32 ▲4.78
Dashboard /wp-admin3.41 ▲0.0648.43 ▼18.21
Posts /wp-admin/edit.php3.51 ▲0.1653.70 ▲1.67
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.37 ▼5.56
Media Library /wp-admin/upload.php3.32 ▲0.0938.29 ▲1.21
MediaCreeper /wp-admin/options-general.php?page=mediacreeper-settings3.3036.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 2 new tables, 6 new options
New tables
wp_mediacreeper
wp_mediacreeper_names
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by MediaCreeper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.32 ▼1.271.82 ▼0.0648.16 ▲6.97
Dashboard /wp-admin2,258 ▲704.90 ▼0.96108.34 ▼3.0140.35 ▼4.64
Posts /wp-admin/edit.php2,097 ▲112.03 ▼0.0238.00 ▼0.1135.41 ▲2.15
Add New Post /wp-admin/post-new.php1,521 ▲217.49 ▼5.87701.93 ▲49.0261.17 ▼8.00
Media Library /wp-admin/upload.php1,393 ▲54.31 ▲0.0996.75 ▼14.3042.64 ▼5.31
MediaCreeper /wp-admin/options-general.php?page=mediacreeper-settings8932.2324.1126.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_mediacreeper
    • wp_mediacreeper_names
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=mediacreeper-settings
    • > Notice in wp-content/plugins/mediacreeper/options.php+52
    Undefined variable: defaultdomain

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mediacreeper/metabox.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediacreeper/Mediacreeper.class.php on line 34
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/mediacreeper/metabox.php on line 13
    • > PHP Warning
      Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediacreeper/Mediacreeper.class.php on line 34
    • > PHP Warning
      Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediacreeper/Mediacreeper.class.php on line 34
    • > PHP Notice
      Undefined variable: hits in wp-content/plugins/mediacreeper/metabox.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: mediacreeper, widget, plugin

mediacreeper/mediacreeper.php Passed 13 tests

"MediaCreeper" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
MediaCreeper.com statistics inside Wordpress admin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,172 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24883422,519
PHP6144301653

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity27.00
▷ Minimum class complexity13.00
▷ Maximum class complexity41.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods3683.72%
▷ Protected methods00.00%
▷ Private methods716.28%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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