89% memeone

Code Review | MemeOne

WordPress plugin MemeOne scored 89% from 54 tests.

About plugin

  • Plugin page: memeone
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 5.8.1
  • First release: Oct 1, 2013
  • Latest release: Apr 29, 2014
  • Number of updates: 19
  • Update frequency: every 11.1 days
  • Top authors: stepan1010 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active / 3,824 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼146.80ms] Passed 4 tests

Analyzing server-side resources used by MemeOne
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.1030.40 ▼4.51
Dashboard /wp-admin3.16 ▲0.1041.11 ▼5.15
Posts /wp-admin/edit.php3.27 ▲0.1646.29 ▼3.21
Add New Post /wp-admin/post-new.php5.51 ▲0.0893.55 ▼574.33
Media Library /wp-admin/upload.php3.10 ▲0.1035.41 ▲2.41
Backgrounds /wp-admin/admin.php?page=memeone-backgrounds3.1131.60
Settings /wp-admin/admin.php?page=memeone3.1130.01
Memes /wp-admin/admin.php?page=memeone-memes3.0829.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 11 new options
New tables
wp_memeone_backgrounds
wp_memeone
New WordPress options
memeone_default_upload_path
memeone_default_upload_url
memeone_backgrounds_destination_folder
memeone_display_meme_on_thank_you_page
memeone_turn_memes_to_wp_posts
memeone_thank_you_page
memeone_destination_folder
memeone_font
memeone_top_text_font_size
memeone_bottom_text_font_size
...

Browser metrics Passed 4 tests

A check of browser resources used by MemeOne
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12416.28 ▲0.6410.28 ▼0.8745.50 ▼7.83
Dashboard /wp-admin3,008 ▲785.85 ▼0.08154.91 ▲8.23114.91 ▼8.65
Posts /wp-admin/edit.php2,778 ▲392.71 ▼0.0194.25 ▲29.6997.30 ▲9.62
Add New Post /wp-admin/post-new.php1,708 ▲2516.00 ▼2.36400.31 ▲7.65115.32 ▲6.30
Media Library /wp-admin/upload.php1,846 ▲395.03 ▲0.01160.88 ▲0.40119.02 ▼4.75
Backgrounds /wp-admin/admin.php?page=memeone-backgrounds1,0732.0654.8484.96
Settings /wp-admin/admin.php?page=memeone1,1352.0959.2881.66
Memes /wp-admin/admin.php?page=memeone-memes8941.8632.9963.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memeone/memeone.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/memeone/memeone-admin-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function memeone_get_memes() in wp-content/plugins/memeone/memeone-admin-memes.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/memeone/memeone-admin-backgrounds.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=memeone
    • > Network (severe)
    https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration Passed 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
5 plugin tags: memes, meme, comics, internet memes, trollface

memeone/memeone.php Passed 13 tests

Analyzing the main PHP file in "MemeOne" version 2.0.5
46 characters long description:
MemeOne is a plugin for creating memes online.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,125 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4258179810
JavaScript28490213
CSS2210102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions38
▷ Named functions38100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/delete_button.png0.65KB0.54KB▼ 17.01%