83% nemesis-all-in-one

Code Review | Nemesis All-in-One | Newspaper Builder Elementor Extention

WordPress plugin Nemesis All-in-One | Newspaper Builder Elementor Extention scored83%from 54 tests.

About plugin

  • Plugin page: nemesis-all-in-one
  • Plugin version: 1.0.6
  • PHP compatiblity: 7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: Nov 11, 2023
  • Number of updates: 25
  • Update frequency: every 25.0 days
  • Top authors: fbtemplates (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.63ms] Passed 4 tests

A check of server-side resources used by Nemesis All-in-One | Newspaper Builder Elementor Extention
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.49 ▼2.71
Dashboard /wp-admin3.35 ▲0.0147.76 ▼10.29
Posts /wp-admin/edit.php3.46 ▲0.1146.39 ▼1.10
Add New Post /wp-admin/post-new.php5.95 ▲0.0790.88 ▼12.42
Media Library /wp-admin/upload.php3.27 ▲0.0537.34 ▲1.46
Premium Layouts /wp-admin/admin.php?page=pro-layouts-registrations3.3130.50
Welcome /wp-admin/admin.php?page=nemesis-all-in-one3.2434.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Nemesis All-in-One | Newspaper Builder Elementor Extention: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9314.70 ▲0.471.60 ▼0.1633.12 ▼11.67
Dashboard /wp-admin2,248 ▲715.59 ▼0.0383.32 ▼11.6984.17 ▲39.26
Posts /wp-admin/edit.php2,153 ▲532.04 ▲0.0739.76 ▲3.9440.53 ▲6.14
Add New Post /wp-admin/post-new.php1,723 ▲18822.25 ▼0.87673.09 ▼22.7352.30 ▼6.33
Media Library /wp-admin/upload.php1,447 ▲534.13 ▼0.01101.14 ▲8.2170.32 ▲28.48
Premium Layouts /wp-admin/admin.php?page=pro-layouts-registrations1,3042.1527.9957.02
Welcome /wp-admin/admin.php?page=nemesis-all-in-one1,34612.92281.2936.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/nemesis-all-in-one/admin/templates/admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/nemesis-all-in-one/admin/templates/premium-layouts.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% 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 need to be fixed:
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

nemesis-all-in-one/nemesis-all-in-one.php 85% from 13 tests

"Nemesis All-in-One | Newspaper Builder Elementor Extention" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,808 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6151661,292
CSS31207812
Sass21520699
JavaScript1205

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity28.33
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods25
▷ Static methods14.00%
▷ Public methods2184.00%
▷ Protected methods312.00%
▷ Private methods14.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/logo.png32.26KB4.76KB▼ 85.24%
images/navigation.png17.66KB0.74KB▼ 95.80%