84% meme-block

Code Review | Meme Block

WordPress plugin Meme Block scored84%from 54 tests.

About plugin

  • Plugin page: meme-block
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Sep 22, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: cristian-ungureanu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /586 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.77ms] Passed 4 tests

Analyzing server-side resources used by Meme Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.49 ▼2.42
Dashboard /wp-admin3.32 ▲0.0249.65 ▼4.45
Posts /wp-admin/edit.php3.37 ▲0.0248.61 ▼1.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.91 ▼10.32
Media Library /wp-admin/upload.php3.24 ▲0.0238.83 ▲3.01

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Meme Block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.35 ▼0.031.93 ▼0.0842.43 ▼2.19
Dashboard /wp-admin2,195 ▲155.67 ▲0.0085.83 ▼0.2537.10 ▼10.20
Posts /wp-admin/edit.php2,100 ▼02.05 ▼0.1034.70 ▼1.3533.39 ▼8.67
Add New Post /wp-admin/post-new.php1,697 ▲17122.04 ▲4.36628.37 ▼73.7557.23 ▼8.28
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.10103.12 ▲0.5043.13 ▼3.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meme-block/meme-block.php:170

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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: fun, meme, block

meme-block/meme-block.php Passed 13 tests

The primary PHP file in "Meme Block" version 1.0.2 is used by WordPress to initiate all plugin functionality
33 characters long description:
Generate your meme and be awesome

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin397 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP21119152
CSS2260127
JSON100100
Markdown19016
JavaScript1042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected