88% at-many-themes

Code Review | A.T. Many themes

WordPress plugin A.T. Many themes scored 88% from 54 tests.

About plugin

  • Plugin page: at-many-themes
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.3
  • WordPress version: 5.8.1
  • First release: Oct 9, 2015
  • Latest release: Apr 15, 2017
  • Number of updates: 8
  • Update frequency: every 69.4 days
  • Top authors: Alexey Tomorovich (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,288 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by A.T. Many themes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.1751.64 ▲17.03
Dashboard /wp-admin3.12 ▲0.0744.80 ▼9.71
Posts /wp-admin/edit.php3.15 ▲0.0540.23 ▼11.72
Add New Post /wp-admin/post-new.php5.24 ▼0.2088.01 ▼588.06
Media Library /wp-admin/upload.php3.15 ▲0.1545.94 ▲4.95
A.T. many themes /wp-admin/options-general.php?page=at_theme_settings3.1141.53

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: 5 new tables, no new options
New tables
wp_thema_expressions_settings
wp_thema_page_settings
wp_thema_main
wp_thema_category_settings
wp_thema_post_settings

Browser metrics Passed 4 tests

A check of browser resources used by A.T. Many themes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,716 ▲12015.98 ▲0.6410.38 ▼1.4753.02 ▼0.78
Dashboard /wp-admin2,994 ▲636.19 ▲0.14164.45 ▲11.29114.88 ▼1.46
Posts /wp-admin/edit.php2,766 ▲272.75 ▲0.0478.22 ▲7.14102.52 ▲3.42
Add New Post /wp-admin/post-new.php1,640 ▲2521.16 ▼0.27319.81 ▼24.37143.79 ▲31.58
Media Library /wp-admin/upload.php1,834 ▲275.18 ▲0.15172.99 ▲7.32137.05 ▲14.49
A.T. many themes /wp-admin/options-general.php?page=at_theme_settings1,4382.2561.9068.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=at_theme_settings
    • > User notice in wp-includes/functions.php+5663
    WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/at-many-themes/at-many-themes.php:29

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)
Everything seems fine, but this is not an exhaustive test

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:
  • Screenshots: Screenshot #1 (Very simple interface to start working.) image not found
You can look at the official readme.txt

at-many-themes/at-many-themes.php 92% from 13 tests

The entry point to "A.T. Many themes" version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 182 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
Success! There were no dangerous files found in this plugin1,141 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP1514379994
JavaScript4190123
CSS12024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods81
▷ Static methods22.47%
▷ Public methods5567.90%
▷ Protected methods11.23%
▷ Private methods2530.86%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants14
▷ Global constants00.00%
▷ Class constants14100.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plus.png2.98KB2.63KB▼ 11.66%
images/b_status.png0.15KB0.18KB0.00%
screenshot-1.png55.65KB21.00KB▼ 62.27%
images/minus.png2.31KB1.18KB▼ 48.86%