84% memepress

Code Review | MemePress

WordPress plugin MemePress scored84%from 54 tests.

About plugin

  • Plugin page: memepress
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-3.5.1
  • WordPress version: 6.3.1
  • First release: May 11, 2013
  • Latest release: May 13, 2013
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: Adzbierajewski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,079 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲1.68ms] Passed 4 tests

This is a short check of server-side resources used by MemePress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.32 ▲6.33
Dashboard /wp-admin3.36 ▲0.0644.89 ▲2.33
Posts /wp-admin/edit.php3.41 ▲0.0646.93 ▼1.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0694.08 ▲3.94
Media Library /wp-admin/upload.php3.29 ▲0.0634.01 ▲1.59
MemePress /wp-admin/options-general.php?page=memepress-admin-menu3.2527.27

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 140 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for MemePress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.67 ▼1.014.03 ▲2.3338.37 ▲1.25
Dashboard /wp-admin2,207 ▲185.80 ▲0.8598.27 ▼24.9241.77 ▼3.28
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0240.41 ▼1.3834.84 ▼2.27
Add New Post /wp-admin/post-new.php1,536 ▲1723.26 ▲0.18611.44 ▲11.4953.49 ▲4.47
Media Library /wp-admin/upload.php1,392 ▲14.22 ▼0.0894.65 ▼5.1943.41 ▲0.13
MemePress /wp-admin/options-general.php?page=memepress-admin-menu7631.9921.1521.08

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/memepress/alex.php:445

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: for, wordpress, fancy, can, meme press...

memepress/alex.php 92% from 13 tests

The main PHP file in "MemePress" ver. 3.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("memepress.php" instead of "alex.php")

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
There were no executable files found in this plugin449 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2210449

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.92
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%
Functions5
▷ Named functions5100.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
No PNG files were detected