90% memorizer

Code Review | Memorizer

WordPress plugin Memorizer scored90%from 54 tests.

About plugin

  • Plugin page: memorizer
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2018
  • Latest release: Mar 31, 2019
  • Number of updates: 21
  • Update frequency: every 7.2 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,039 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.03MB] [CPU: ▼3.68ms] Passed 4 tests

This is a short check of server-side resources used by Memorizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.16 ▼6.30
Dashboard /wp-admin3.34 ▲0.0345.14 ▼2.45
Posts /wp-admin/edit.php3.39 ▲0.0344.96 ▼0.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.59 ▼5.54
Media Library /wp-admin/upload.php3.26 ▲0.0334.15 ▲3.53

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Memorizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6713.25 ▼1.301.95 ▲0.0140.57 ▼5.60
Dashboard /wp-admin2,205 ▲265.80 ▲0.0199.05 ▼7.6140.38 ▼6.76
Posts /wp-admin/edit.php2,086 ▼02.00 ▲0.0133.90 ▼2.9134.95 ▲2.77
Add New Post /wp-admin/post-new.php6,585 ▲5,06629.14 ▲5.78829.71 ▲151.5257.69 ▼7.46
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.09100.29 ▼4.5943.50 ▼2.05

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in memorizer/assets to your readme.txt
You can take inspiration from this readme.txt

memorizer/memorizer.php Passed 13 tests

The main PHP script in "Memorizer" version 1.0.3 is automatically included on every request by WordPress
140 characters long description:
Masking a part of content by [memorizer] shortcode, and unmask it by click. You can make word books, quizzes and exams by using this plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected230 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12953101
JavaScript391292
CSS15037

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.37
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/masking-icon.png10.26KB3.08KB▼ 69.98%