10% demomentsomtres-grid-archive

Code Review | DeMomentSomTres Grid Archive

WordPress plugin DeMomentSomTres Grid Archive scored 10% from 54 tests.

About plugin

  • Plugin page: demomentsomtres-g...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.6.1
  • WordPress version: 5.9.2
  • First release: Nov 17, 2013
  • Latest release: Dec 6, 2016
  • Number of updates: 10
  • Update frequency: every 115.5 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,104 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/demomentsomtres-grid-archive/freemius/includes/managers/class-fs-admin-menu-manager.php+123
    Undefined index: slug

Server metrics [RAM: ▲0.20MB] [CPU: ▼331.92ms] Passed 4 tests

Analyzing server-side resources used by DeMomentSomTres Grid Archive
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.0615.12 ▼37.14
Dashboard /wp-admin4.59 ▲1.1820.95 ▼22.14
Posts /wp-admin/edit.php4.59 ▲0.9512.51 ▼29.16
Add New Post /wp-admin/post-new.php4.59 ▼2.3814.01 ▼1,239.22
Media Library /wp-admin/upload.php4.59 ▲1.2912.91 ▼12.54
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius4.5927.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 114 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_debug_mode
fs_api_cache
fs_active_plugins

Browser metrics Passed 4 tests

Checking browser requirements for DeMomentSomTres Grid Archive
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲9415.35 ▼0.355.72 ▼1.651.90 ▼0.23
Dashboard /wp-admin2,937 ▲776.16 ▲0.10119.20 ▼9.08171.65 ▲1.36
Posts /wp-admin/edit.php2,742 ▲513.25 ▲0.0164.33 ▲0.02156.55 ▲12.87
Add New Post /wp-admin/post-new.php1,696 ▲3515.89 ▼1.05428.58 ▼5.49157.98 ▼9.63
Media Library /wp-admin/upload.php1,750 ▲525.54 ▲0.01145.47 ▲5.58202.38 ▲15.37
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius280.940.0320.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/demomentsomtres-grid-archive/freemius/includes/managers/class-fs-admin-menu-manager.php+123
    Undefined index: slug
  • This plugin did not uninstall successfully, leaving 4 options in the database
    • fs_active_plugins
    • fs_debug_mode
    • fs_api_cache
    • fs_accounts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Notice in wp-content/plugins/demomentsomtres-grid-archive/freemius/includes/managers/class-fs-admin-menu-manager.php+123
    Undefined index: slug

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: all posts, month grid, archives

demomentsomtres-grid-archive/demomentsomtres-grid-archive.php 92% from 13 tests

The main PHP file in "DeMomentSomTres Grid Archive" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

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
No dangerous file extensions were detected16,573 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
PHP713,0577,48612,912
PO File26506591,608
Sass15248801,558
JavaScript43763229
Markdown1590191
JSON20042
YAML22022
CSS90011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity42.06
▷ Minimum class complexity1.00
▷ Maximum class complexity946.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes25.71%
▷ Concrete classes3394.29%
▷ Final classes00.00%
Methods620
▷ Static methods8613.87%
▷ Public methods45473.23%
▷ Protected methods121.94%
▷ Private methods15424.84%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants93
▷ Global constants7681.72%
▷ Class constants1718.28%
▷ Public constants17100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%