78% almar

Code Review | Almar

WordPress plugin Almar scored 78% from 54 tests.

About plugin

  • Plugin page: almar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jul 23, 2013
  • Latest release: Jul 23, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wpthemeseo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,554 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.18MB] [CPU: ▼1.70ms] Passed 4 tests

Server-side resources used by Almar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.36 ▼1.57
Dashboard /wp-admin3.50 ▲0.2049.43 ▼1.51
Posts /wp-admin/edit.php3.62 ▲0.2649.60 ▼1.64
Add New Post /wp-admin/post-new.php6.08 ▲0.2094.17 ▼2.07
Media Library /wp-admin/upload.php3.43 ▲0.2039.13 ▲5.23
Admin Theme Options /wp-admin/themes.php?page=wpthemeseo-options-framework3.4135.61

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
almar
db_upgraded
can_compress_scripts
wpthemeseo

Browser metrics Passed 4 tests

This is an overview of browser requirements for Almar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.34 ▼1.411.70 ▼0.0730.61 ▼10.77
Dashboard /wp-admin2,249 ▲574.84 ▼0.06107.36 ▼2.4135.55 ▼7.39
Posts /wp-admin/edit.php2,075 ▼141.99 ▲0.0239.57 ▼1.4628.99 ▼6.00
Add New Post /wp-admin/post-new.php1,583 ▲6122.45 ▼0.80644.72 ▼29.5229.29 ▼24.97
Media Library /wp-admin/upload.php1,371 ▼204.20 ▲0.0093.67 ▼5.9736.48 ▼7.89
Admin Theme Options /wp-admin/themes.php?page=wpthemeseo-options-framework1,0423.5362.2223.45

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
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • wpthemeseo
    • almar
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=wpthemeseo-options-framework
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=wpthemeseo-options-framework
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/almar/assets/plugins/wpthemeseo/options-media-uploader.php:111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/almar/assets/plugins/wpthemeseo/options-sanitize.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/almar/assets/plugins/wpthemeseo/index.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/almar/index.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Dashboard), #2 (Post Edit), #3 (Login Page)
You can look at the official readme.txt

almar/index.php 92% from 13 tests

The main PHP script in "Almar" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("almar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,625 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP6198218967
CSS6742446
JavaScript42623125
PO File1313187

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/pico/users.png4.35KB2.81KB▼ 35.32%
assets/img/pico/comments.png2.80KB2.21KB▼ 21.16%
assets/plugins/wpthemeseo/images/ico-delete.png0.70KB0.72KB0.00%
assets/img/pico/pages.png5.71KB3.12KB▼ 45.30%
assets/img/bg/bg-login-form.png0.20KB0.12KB▼ 39.71%