84% noor-starter-templates

Code Review | Noor Starter Templates

WordPress plugin Noor Starter Templates scored84%from 54 tests.

About plugin

  • Plugin page: noor-starter-temp...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2022
  • Latest release: Jan 25, 2023
  • Number of updates: 8
  • Update frequency: every 4.4 days
  • Top authors: pixeldima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.80ms] Passed 4 tests

An overview of server-side resources used by Noor Starter Templates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.06 ▼2.39
Dashboard /wp-admin3.49 ▲0.1849.90 ▲0.16
Posts /wp-admin/edit.php3.60 ▲0.2445.60 ▼3.23
Add New Post /wp-admin/post-new.php6.07 ▲0.1986.71 ▼10.21
Media Library /wp-admin/upload.php3.41 ▲0.1834.05 ▼7.36
Starter Templates /wp-admin/themes.php?page=noor-starter-templates3.4240.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Noor Starter Templates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.43 ▼0.121.82 ▼0.5243.83 ▼0.26
Dashboard /wp-admin2,202 ▲255.63 ▼0.0687.85 ▼0.2041.65 ▼2.98
Posts /wp-admin/edit.php2,104 ▲42.05 ▲0.0036.88 ▲0.3332.61 ▼6.93
Add New Post /wp-admin/post-new.php1,529 ▼423.38 ▲0.24670.20 ▼13.4453.83 ▲3.56
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.04112.99 ▼1.7548.38 ▲3.00
Starter Templates /wp-admin/themes.php?page=noor-starter-templates1,05613.23228.1436.05

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Noor_Starter_Templates\\is_admin() in wp-content/plugins/noor-starter-templates/inc/class-template-database-importer.php:125
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/noor-starter-templates/vendor/wxr-importer/Importer.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Noor_Starter_Templates\\add_action() in wp-content/plugins/noor-starter-templates/inc/class-author-meta.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/noor-starter-templates/vendor/wxr-importer/WXRImporter.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/noor-starter-templates/inc/class-wxr-importer.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/noor-starter-templates/inc/class-import-customizer-option.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Noor_Starter_Templates\\Logger' not found in wp-content/plugins/noor-starter-templates/inc/class-logger-cli.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/noor-starter-templates/vendor/wxr-importer/WPImporterLoggerCLI.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/noor-starter-templates/inc/class-customizer-option.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: elementor, block editor, gutenberg, wpbakery, templates...

noor-starter-templates/noor-starter-templates.php Passed 13 tests

"Noor Starter Templates" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
Choose the prebuilt website and click to import.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin11,374 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,2403,0036,092
JavaScript1271503,387
Sass22981,306
CSS37011312
JSON200267
SVG10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity42.65
▷ Minimum class complexity1.00
▷ Maximum class complexity293.00
Average method complexity5.02
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes27.69%
Methods270
▷ Static methods6724.81%
▷ Public methods19572.22%
▷ Protected methods4014.81%
▷ Private methods3512.96%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/fonts/poppins.png2.88KB1.46KB▼ 49.42%
assets/images/fonts/glegoo.png2.47KB1.31KB▼ 46.88%
assets/images/fonts/cairo.png2.03KB0.96KB▼ 52.81%
assets/images/fonts/abril-fatface.png2.60KB1.36KB▼ 47.78%
assets/images/fonts/kufam.png1.98KB0.93KB▼ 53.13%