83% and-it-portfolio-for-elementor

Code Review | And IT Portfolio for Elementor

WordPress plugin And IT Portfolio for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: and-it-portfolio-...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: Oct 31, 2019
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: anditthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,267 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.07ms] Passed 4 tests

Analyzing server-side resources used by And IT Portfolio for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.75 ▼3.36
Dashboard /wp-admin3.31 ▲0.0147.50 ▲1.67
Posts /wp-admin/edit.php3.36 ▲0.0146.95 ▲1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.11 ▼8.02
Media Library /wp-admin/upload.php3.24 ▲0.0133.39 ▲1.42

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for And IT Portfolio for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.30 ▼0.871.75 ▼0.0344.02 ▼0.26
Dashboard /wp-admin2,224 ▲364.80 ▼0.10114.30 ▲3.6743.67 ▲4.96
Posts /wp-admin/edit.php2,106 ▲172.04 ▲0.0436.81 ▼3.1034.98 ▲1.27
Add New Post /wp-admin/post-new.php1,527 ▼817.43 ▼0.78660.68 ▲50.3853.12 ▼1.44
Media Library /wp-admin/upload.php1,406 ▲184.21 ▲0.0396.92 ▼1.8744.74 ▼0.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/and-it-portfolio-for-elementor/widgets/widgets-andit-portfolio-functions.php:275
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AndITPortfolioBuilder\\add_action() in wp-content/plugins/and-it-portfolio-for-elementor/class-andit-portfolio.php:137

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 87% from 29 tests

readme.txt 88% 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
These attributes need your attention: You can take inspiration from this readme.txt

and-it-portfolio-for-elementor/andit-portfolio-for-elementor.php 85% from 13 tests

This is the main PHP file of "And IT Portfolio for Elementor" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("and-it-portfolio-for-elementor.php" instead of "andit-portfolio-for-elementor.php")

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 plugin12,541 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity21.20
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
▷ Static methods12.33%
▷ Public methods2762.79%
▷ Protected methods920.93%
▷ Private methods716.28%
▷ Named functions25100.00%
▷ Anonymous functions00.00%
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/magnifierplus.png0.39KB0.27KB▼ 31.17%
assets/img/plus.png0.21KB0.15KB▼ 29.11%
assets/img/arrows.png0.21KB0.18KB▼ 11.90%
assets/img/magnifier.png0.38KB0.26KB▼ 30.05%