84% memorista

Code Review | Memorista

WordPress plugin Memorista scored84%from 54 tests.

About plugin

  • Plugin page: memorista
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 12
  • Update frequency: every 63.3 days
  • Top authors: memorista (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /1,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.39ms] Passed 4 tests

This is a short check of server-side resources used by Memorista
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.63 ▼7.16
Dashboard /wp-admin3.32 ▼0.0345.59 ▼8.42
Posts /wp-admin/edit.php3.37 ▲0.0145.52 ▲2.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.72 ▼13.33
Media Library /wp-admin/upload.php3.24 ▲0.0134.09 ▼0.66

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Memorista
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8615.19 ▲1.0579.55 ▲77.9643.54 ▼0.40
Dashboard /wp-admin2,208 ▲285.52 ▼0.1483.59 ▼11.8136.77 ▼3.24
Posts /wp-admin/edit.php2,116 ▲161.96 ▲0.0134.82 ▼5.6134.01 ▼3.86
Add New Post /wp-admin/post-new.php1,539 ▲323.36 ▼0.06602.39 ▼29.9053.23 ▼4.68
Media Library /wp-admin/upload.php1,416 ▲164.20 ▲0.0196.58 ▲0.2942.36 ▲1.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memorista/memorista.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/memorista/memorista-options.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === memorista === )
Please take inspiration from this readme.txt

memorista/memorista.php 92% from 13 tests

"Memorista" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/memorista" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin120 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22014117
CSS1003
JavaScript12330

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin