84% athemes-starter-sites

Code Review | aThemes Starter Sites

WordPress plugin aThemes Starter Sites scored84%from 54 tests.

About plugin

  • Plugin page: athemes-starter-s...
  • Plugin version: 1.0.45
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.0
  • WordPress version: 6.3.1
  • First release: Dec 15, 2020
  • Latest release: Nov 27, 2023
  • Number of updates: 51
  • Update frequency: every 21.5 days
  • Top authors: athemes (66.67%)maaprote (35.29%)

Code review

54 tests

User reviews

1 review

Install metrics

50,000+ active /1,027,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.93ms] Passed 4 tests

An overview of server-side resources used by aThemes Starter Sites
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2637.79 ▼8.28
Dashboard /wp-admin3.56 ▲0.2550.99 ▼0.00
Posts /wp-admin/edit.php3.68 ▲0.3153.61 ▲2.75
Add New Post /wp-admin/post-new.php6.14 ▲0.2587.06 ▼10.18
Media Library /wp-admin/upload.php3.49 ▲0.2537.51 ▲4.29
Starter Sites /wp-admin/themes.php?page=starter-sites3.6032.94

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options
atss_db_version
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by aThemes Starter Sites
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7714.24 ▼0.041.84 ▲0.0639.66 ▼4.67
Dashboard /wp-admin2,216 ▲395.63 ▲0.0098.11 ▲1.2042.59 ▼3.06
Posts /wp-admin/edit.php2,125 ▲252.00 ▼0.0140.22 ▲2.8336.73 ▼0.30
Add New Post /wp-admin/post-new.php1,552 ▲2623.29 ▲0.27659.22 ▲72.6151.56 ▼0.04
Media Library /wp-admin/upload.php1,424 ▲304.21 ▲0.0397.57 ▲1.4940.35 ▼2.00
Starter Sites /wp-admin/themes.php?page=starter-sites1,0142.3234.0827.54

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • atss_db_version
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/athemes-starter-sites/inc/class-notice.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/athemes-starter-sites/import/class-import.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/athemes-starter-sites/themes/sydney.php:521
    • > PHP Fatal error
      Uncaught Error: Class 'WPImporterLoggerCLI' not found in wp-content/plugins/athemes-starter-sites/import/wp-content-importer-v2/Logger.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/athemes-starter-sites/core/class-customizer-option.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WPImporterLogger' not found in wp-content/plugins/athemes-starter-sites/import/wp-content-importer-v2/WPImporterLoggerCLI.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/athemes-starter-sites/themes/sydney-pro.php:705
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/athemes-starter-sites/v2/themes/sydney.php:807
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/athemes-starter-sites/themes/airi.php:297
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/athemes-starter-sites/import/wp-content-importer-v2/WXRImporter.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: sites, athemes, elementor, import, demos

athemes-starter-sites/athemes-starter-sites.php Passed 13 tests

Analyzing the main PHP file in "aThemes Starter Sites" version 1.0.45
41 characters long description:
Starter Sites for Sydney, Botiga and Airi

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin14,601 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,9762,9479,491
CSS638792,382
Sass2250111,349
JavaScript144152291,293
SVG60086

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity45.04
▷ Minimum class complexity1.00
▷ Maximum class complexity296.00
Average method complexity5.64
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes28.33%
Methods229
▷ Static methods2812.23%
▷ Public methods14965.07%
▷ Protected methods7030.57%
▷ Private methods104.37%
Functions33
▷ Named functions3193.94%
▷ Anonymous functions26.06%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/gutenberg.png1.00KB0.59KB▼ 41.15%
assets/images/elementor.png2.10KB1.97KB▼ 6.05%